aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/moderated.lib.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-07-13 13:22:40 +0100
committerMatthew Wild <mwild1@gmail.com>2018-07-13 13:22:40 +0100
commit1a0e7d5a10f2140d05dd54531c4ba1f35768ab93 (patch)
tree65da4886c507b3bbc693521498c8520792e3ff80 /plugins/muc/moderated.lib.lua
parentc80aae6deea828a5178a9af5dc5981705ab46175 (diff)
downloadprosody-1a0e7d5a10f2140d05dd54531c4ba1f35768ab93.tar.gz
prosody-1a0e7d5a10f2140d05dd54531c4ba1f35768ab93.zip
MUC: Improve labels of all config form items
Diffstat (limited to 'plugins/muc/moderated.lib.lua')
-rw-r--r--plugins/muc/moderated.lib.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/muc/moderated.lib.lua b/plugins/muc/moderated.lib.lua
index 8354c585..1087e2c4 100644
--- a/plugins/muc/moderated.lib.lua
+++ b/plugins/muc/moderated.lib.lua
@@ -26,7 +26,8 @@ module:hook("muc-config-form", function(event)
table.insert(event.form, {
name = "muc#roomconfig_moderatedroom";
type = "boolean";
- label = "Make Room Moderated?";
+ label = "Moderated (require permission to speak)";
+ desc = "In moderated rooms occupants must be given permission to speak by a room moderator";
value = get_moderated(event.room);
});
end, 100-4);
@@ -40,6 +41,8 @@ end);
module:hook("muc-get-default-role", function(event)
if event.affiliation == nil then
if get_moderated(event.room) then
+ -- XEP-0045:
+ -- An implementation MAY grant voice by default to visitors in unmoderated rooms.
return "visitor"
end
end