Software /
code /
prosody
Diff
plugins/muc/hidden.lib.lua @ 9035:173c0e16e704
MUC: Add sections in room config form
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 13 Jul 2018 15:47:08 +0100 |
parent | 9034:1c709e3d2e5e |
child | 9053:ea9e1f8f3013 |
line wrap: on
line diff
--- a/plugins/muc/hidden.lib.lua Fri Jul 13 13:22:40 2018 +0100 +++ b/plugins/muc/hidden.lib.lua Fri Jul 13 15:47:08 2018 +0100 @@ -22,11 +22,11 @@ table.insert(event.form, { name = "muc#roomconfig_publicroom"; type = "boolean"; - label = "Include room in public lists"; + label = "Include room information in public lists"; desc = "Enable this to allow people to find the room"; value = not get_hidden(event.room); }); -end, 100-5); +end, 100-9); module:hook("muc-config-submitted/muc#roomconfig_publicroom", function(event) if set_hidden(event.room, not event.value) then