Software /
code /
prosody
Comparison
plugins/muc/whois.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 | 9081:ce57c69a20e2 |
comparison
equal
deleted
inserted
replaced
9034:1c709e3d2e5e | 9035:173c0e16e704 |
---|---|
36 value = { | 36 value = { |
37 { value = 'moderators', label = 'Moderators only', default = whois == 'moderators' }, | 37 { value = 'moderators', label = 'Moderators only', default = whois == 'moderators' }, |
38 { value = 'anyone', label = 'Anyone', default = whois == 'anyone' } | 38 { value = 'anyone', label = 'Anyone', default = whois == 'anyone' } |
39 } | 39 } |
40 }); | 40 }); |
41 end, 100-9); | 41 end, 80-4); |
42 | 42 |
43 module:hook("muc-config-submitted/muc#roomconfig_whois", function(event) | 43 module:hook("muc-config-submitted/muc#roomconfig_whois", function(event) |
44 if set_whois(event.room, event.value) then | 44 if set_whois(event.room, event.value) then |
45 local code = (event.value == 'moderators') and "173" or "172"; | 45 local code = (event.value == 'moderators') and "173" or "172"; |
46 event.status_codes[code] = true; | 46 event.status_codes[code] = true; |