plugins/muc/muc.lib.lua
changeset 8856 f84f566dea58
parent 8855 5e98d62f3f9b
child 8859 538bb632a2b6
--- a/plugins/muc/muc.lib.lua	Fri Oct 20 05:45:03 2017 +0200
+++ b/plugins/muc/muc.lib.lua	Fri Oct 20 05:45:40 2017 +0200
@@ -780,6 +780,7 @@
 
 function room_mt:get_voice_form_layout() -- luacheck: ignore 212/self
 	local form = dataform.new({
+		title = "Voice Request";
 		{
 			name = "FORM_TYPE";
 			type = "hidden";
@@ -788,18 +789,24 @@
 		{
 			name = "muc#jid";
 			type = "jid-single";
+			label = "User ID";
 		},
 		{
 			name = "muc#roomnick";
 			type = "text-single";
+			label = "Room Nickname";
 		},
 		{
 			name = "muc#role";
 			type = "text-single";
+			label = "Requested Role";
+			value = "participant";
 		},
 		{
 			name = "muc#request_allow";
 			type = "boolean";
+			label = "Grant voice to this person?";
+			value = false;
 		}
 	});