Diff

plugins/muc/members_only.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 8987:596c8c7d98b1
child 9035:173c0e16e704
line wrap: on
line diff
--- a/plugins/muc/members_only.lib.lua	Fri Jul 13 04:52:43 2018 +0200
+++ b/plugins/muc/members_only.lib.lua	Fri Jul 13 13:22:40 2018 +0100
@@ -64,7 +64,7 @@
 	event.reply:tag("feature", {var = get_members_only(event.room) and "muc_membersonly" or "muc_open"}):up();
 	table.insert(event.form, {
 		name = "{http://prosody.im/protocol/muc}roomconfig_allowmemberinvites";
-		label = "Allow members to invite new members?";
+		label = "Allow members to invite new members";
 		type = "boolean";
 		value = not not get_allow_member_invites(event.room);
 	});
@@ -75,13 +75,14 @@
 	table.insert(event.form, {
 		name = "muc#roomconfig_membersonly";
 		type = "boolean";
-		label = "Make Room Members-Only?";
+		label = "Only allow members to join";
+		desc = "Enable this to only allow access for room owners, admins and members";
 		value = get_members_only(event.room);
 	});
 	table.insert(event.form, {
 		name = "{http://prosody.im/protocol/muc}roomconfig_allowmemberinvites";
 		type = "boolean";
-		label = "Allow members to invite new members?";
+		label = "Allow members to invite new members";
 		value = get_allow_member_invites(event.room);
 	});
 end, 100-6);