From 1a0e7d5a10f2140d05dd54531c4ba1f35768ab93 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 13 Jul 2018 13:22:40 +0100 Subject: MUC: Improve labels of all config form items --- plugins/muc/moderated.lib.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/muc/moderated.lib.lua') 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 -- cgit v1.2.3