Mercurial > prosody-hg
comparison plugins/muc/hidden.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 |
| parents | e16b3fd0bd80 |
| children | 173c0e16e704 |
comparison
equal
deleted
inserted
replaced
| 9033:f1b6efd5b379 | 9034:1c709e3d2e5e |
|---|---|
| 20 | 20 |
| 21 module:hook("muc-config-form", function(event) | 21 module:hook("muc-config-form", function(event) |
| 22 table.insert(event.form, { | 22 table.insert(event.form, { |
| 23 name = "muc#roomconfig_publicroom"; | 23 name = "muc#roomconfig_publicroom"; |
| 24 type = "boolean"; | 24 type = "boolean"; |
| 25 label = "Make Room Publicly Searchable?"; | 25 label = "Include room in public lists"; |
| 26 desc = "Enable this to allow people to find the room"; | |
| 26 value = not get_hidden(event.room); | 27 value = not get_hidden(event.room); |
| 27 }); | 28 }); |
| 28 end, 100-5); | 29 end, 100-5); |
| 29 | 30 |
| 30 module:hook("muc-config-submitted/muc#roomconfig_publicroom", function(event) | 31 module:hook("muc-config-submitted/muc#roomconfig_publicroom", function(event) |
