aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/members_only.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/members_only.lib.lua
parent7afeb9baf491f9f3013b9356b3686bfb8192095a (diff)
downloadprosody-995815c6d323a41f44cc6bd2fa76fa9c248c105a.tar.gz
prosody-995815c6d323a41f44cc6bd2fa76fa9c248c105a.zip
MUC: Improve labels of all config form items
Diffstat (limited to 'plugins/muc/members_only.lib.lua')
-rw-r--r--plugins/muc/members_only.lib.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/muc/members_only.lib.lua b/plugins/muc/members_only.lib.lua
index c9980280..b3bcdd8b 100644
--- a/plugins/muc/members_only.lib.lua
+++ b/plugins/muc/members_only.lib.lua
@@ -64,7 +64,7 @@ module:hook("muc-disco#info", function(event)
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 @@ module:hook("muc-config-form", function(event)
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);