aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-06-02 16:10:00 +0200
committerKim Alvefur <zash@zash.se>2018-06-02 16:10:00 +0200
commit7be55b3fd83a6b1a9d1e5a819c0b0d5d23f274f2 (patch)
tree28416f22eace341b74ed11141c44486b829789ea
parent740a38cafe15d76c52aca1dffb8899676fbdc392 (diff)
downloadprosody-7be55b3fd83a6b1a9d1e5a819c0b0d5d23f274f2.tar.gz
prosody-7be55b3fd83a6b1a9d1e5a819c0b0d5d23f274f2.zip
MUC: Correctly use a multiple options field for requested role (thanks jonasw)
-rw-r--r--plugins/muc/muc.lib.lua8
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";