Mercurial > prosody-hg
diff plugins/muc/muc.lib.lua @ 8861:2a48255f889b
MUC: Correctly use a multiple options field for requested role (thanks jonasw)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 02 Jun 2018 16:10:00 +0200 |
| parents | 11176f47a03a |
| children | 2a8bbfcb6868 |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Fri Jun 01 10:26:18 2018 +0200 +++ b/plugins/muc/muc.lib.lua Sat Jun 02 16:10:00 2018 +0200 @@ -799,9 +799,15 @@ }, { name = "muc#role"; - type = "text-single"; + type = "list-single"; label = "Requested Role"; value = "participant"; + options = { + "none", + "visitor", + "participant", + "moderator", + }; }, { name = "muc#request_allow";
