Changeset

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 8860:0bb46a1bb398
children 8862:900dff5ef498
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
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";