diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-07-13 13:22:40 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-07-13 13:22:40 +0100 |
commit | 1a0e7d5a10f2140d05dd54531c4ba1f35768ab93 (patch) | |
tree | 65da4886c507b3bbc693521498c8520792e3ff80 /plugins/muc/members_only.lib.lua | |
parent | c80aae6deea828a5178a9af5dc5981705ab46175 (diff) | |
download | prosody-1a0e7d5a10f2140d05dd54531c4ba1f35768ab93.tar.gz prosody-1a0e7d5a10f2140d05dd54531c4ba1f35768ab93.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.lua | 7 |
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); |