Diff

plugins/muc/moderated.lib.lua @ 9034:1c709e3d2e5e

MUC: Improve labels of all config form items
author Matthew Wild <mwild1@gmail.com>
date Fri, 13 Jul 2018 13:22:40 +0100
parent 8865:2a8bbfcb6868
child 9035:173c0e16e704
line wrap: on
line diff
--- a/plugins/muc/moderated.lib.lua	Fri Jul 13 04:52:43 2018 +0200
+++ b/plugins/muc/moderated.lib.lua	Fri Jul 13 13:22:40 2018 +0100
@@ -26,7 +26,8 @@
 	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 @@
 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