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
commit995815c6d323a41f44cc6bd2fa76fa9c248c105a (patch)
tree65da4886c507b3bbc693521498c8520792e3ff80 /plugins/muc/moderated.lib.lua
parent7afeb9baf491f9f3013b9356b3686bfb8192095a (diff)
downloadprosody-995815c6d323a41f44cc6bd2fa76fa9c248c105a.tar.gz
prosody-995815c6d323a41f44cc6bd2fa76fa9c248c105a.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