From 995815c6d323a41f44cc6bd2fa76fa9c248c105a 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/members_only.lib.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins/muc/members_only.lib.lua') 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); -- cgit v1.2.3