Software /
code /
prosody
Comparison
plugins/muc/moderated.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 |
comparison
equal
deleted
inserted
replaced
9034:1c709e3d2e5e | 9035:173c0e16e704 |
---|---|
28 type = "boolean"; | 28 type = "boolean"; |
29 label = "Moderated (require permission to speak)"; | 29 label = "Moderated (require permission to speak)"; |
30 desc = "In moderated rooms occupants must be given permission to speak by a room moderator"; | 30 desc = "In moderated rooms occupants must be given permission to speak by a room moderator"; |
31 value = get_moderated(event.room); | 31 value = get_moderated(event.room); |
32 }); | 32 }); |
33 end, 100-4); | 33 end, 80-3); |
34 | 34 |
35 module:hook("muc-config-submitted/muc#roomconfig_moderatedroom", function(event) | 35 module:hook("muc-config-submitted/muc#roomconfig_moderatedroom", function(event) |
36 if set_moderated(event.room, event.value) then | 36 if set_moderated(event.room, event.value) then |
37 event.status_codes["104"] = true; | 37 event.status_codes["104"] = true; |
38 end | 38 end |