diff options
author | Kim Alvefur <zash@zash.se> | 2018-06-02 16:10:00 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-06-02 16:10:00 +0200 |
commit | 68b82ea4a792464f23512a42f84ad38d93648b2e (patch) | |
tree | 28416f22eace341b74ed11141c44486b829789ea | |
parent | 783e6e065f4f962542e49d445eb52dfbf36569c4 (diff) | |
download | prosody-68b82ea4a792464f23512a42f84ad38d93648b2e.tar.gz prosody-68b82ea4a792464f23512a42f84ad38d93648b2e.zip |
MUC: Correctly use a multiple options field for requested role (thanks jonasw)
-rw-r--r-- | plugins/muc/muc.lib.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index eb6e2257..23acfed1 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -799,9 +799,15 @@ function room_mt:get_voice_form_layout() -- luacheck: ignore 212/self }, { name = "muc#role"; - type = "text-single"; + type = "list-single"; label = "Requested Role"; value = "participant"; + options = { + "none", + "visitor", + "participant", + "moderator", + }; }, { name = "muc#request_allow"; |