projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5082d30
)
MUC: Fix global access when setting 'whois', probably resulted in wrong status code...
author
Kim Alvefur
<zash@zash.se>
Mon, 11 Jan 2016 12:44:48 +0000
(13:44 +0100)
committer
Kim Alvefur
<zash@zash.se>
Mon, 11 Jan 2016 12:44:48 +0000
(13:44 +0100)
plugins/muc/whois.lib.lua
patch
|
blob
|
history
diff --git
a/plugins/muc/whois.lib.lua
b/plugins/muc/whois.lib.lua
index a8e1f8d419bd0c89591e0b11dfa72633bc690692..2f492c450dcbc5eb968d11c3730f761800fa1ff2 100644
(file)
--- a/
plugins/muc/whois.lib.lua
+++ b/
plugins/muc/whois.lib.lua
@@
-43,7
+43,7
@@
end);
module:hook("muc-config-submitted/muc#roomconfig_whois", function(event)
if set_whois(event.room, event.value) then
- local code = (
new
== 'moderators') and "173" or "172";
+ local code = (
event.value
== 'moderators') and "173" or "172";
event.status_codes[code] = true;
end
end);