Mercurial > prosody-hg
comparison plugins/muc/subject.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 | 2e45b1b47918 |
| children | 173c0e16e704 |
comparison
equal
deleted
inserted
replaced
| 9033:f1b6efd5b379 | 9034:1c709e3d2e5e |
|---|---|
| 39 | 39 |
| 40 module:hook("muc-config-form", function(event) | 40 module:hook("muc-config-form", function(event) |
| 41 table.insert(event.form, { | 41 table.insert(event.form, { |
| 42 name = "muc#roomconfig_changesubject"; | 42 name = "muc#roomconfig_changesubject"; |
| 43 type = "boolean"; | 43 type = "boolean"; |
| 44 label = "Allow Occupants to Change Subject?"; | 44 label = "Allow anyone to set the room's subject"; |
| 45 desc = "Choose whether anyone, or only moderators, may set the room's subject"; | |
| 45 value = get_changesubject(event.room); | 46 value = get_changesubject(event.room); |
| 46 }); | 47 }); |
| 47 end, 100-8); | 48 end, 100-8); |
| 48 | 49 |
| 49 module:hook("muc-config-submitted/muc#roomconfig_changesubject", function(event) | 50 module:hook("muc-config-submitted/muc#roomconfig_changesubject", function(event) |
