Mercurial > prosody-hg
comparison plugins/muc/persistent.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 | 326fedc1d3c6 |
| 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_persistentroom"; | 23 name = "muc#roomconfig_persistentroom"; |
| 24 type = "boolean"; | 24 type = "boolean"; |
| 25 label = "Make Room Persistent?"; | 25 label = "Persistent (room should remain even when it is empty)"; |
| 26 desc = "Rooms are automatically deleted when they are empty, unless this option is enabled"; | |
| 26 value = get_persistent(event.room); | 27 value = get_persistent(event.room); |
| 27 }); | 28 }); |
| 28 end, 100-3); | 29 end, 100-3); |
| 29 | 30 |
| 30 module:hook("muc-config-submitted/muc#roomconfig_persistentroom", function(event) | 31 module:hook("muc-config-submitted/muc#roomconfig_persistentroom", function(event) |
