Software /
code /
prosody
Comparison
plugins/muc/subject.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 | 9684:b2d6b79c9513 |
child | 11128:c3eefb517b7b |
comparison
equal
deleted
inserted
replaced
9034:1c709e3d2e5e | 9035:173c0e16e704 |
---|---|
43 type = "boolean"; | 43 type = "boolean"; |
44 label = "Allow anyone to set the room's 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 desc = "Choose whether anyone, or only moderators, may set the room's subject"; |
46 value = get_changesubject(event.room); | 46 value = get_changesubject(event.room); |
47 }); | 47 }); |
48 end, 100-8); | 48 end, 80-1); |
49 | 49 |
50 module:hook("muc-config-submitted/muc#roomconfig_changesubject", function(event) | 50 module:hook("muc-config-submitted/muc#roomconfig_changesubject", function(event) |
51 if set_changesubject(event.room, event.value) then | 51 if set_changesubject(event.room, event.value) then |
52 event.status_codes["104"] = true; | 52 event.status_codes["104"] = true; |
53 end | 53 end |