aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-10-20 05:45:40 +0200
committerKim Alvefur <zash@zash.se>2017-10-20 05:45:40 +0200
commit7c0452299662f7d5a9721a82eb480ec4b109b448 (patch)
tree06ea200ca9ee28b35653af9c6b913477b282e558 /plugins/muc/muc.lib.lua
parent9ecd07b5da9176a210f4fa957633d9f8041e01de (diff)
downloadprosody-7c0452299662f7d5a9721a82eb480ec4b109b448.tar.gz
prosody-7c0452299662f7d5a9721a82eb480ec4b109b448.zip
MUC: Reuse the same dataform for voice requests
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r--plugins/muc/muc.lib.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 882d9734..f23e0ee7 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -780,6 +780,7 @@ end
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 @@ function room_mt:get_voice_form_layout() -- luacheck: ignore 212/self
{
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;
}
});