From 68b82ea4a792464f23512a42f84ad38d93648b2e Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 2 Jun 2018 16:10:00 +0200 Subject: MUC: Correctly use a multiple options field for requested role (thanks jonasw) --- plugins/muc/muc.lib.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'plugins/muc') 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"; -- cgit v1.2.3