aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-01-11 13:44:48 +0100
committerKim Alvefur <zash@zash.se>2016-01-11 13:44:48 +0100
commit69f9998d1641846399e3d2818da4fd07ae05739a (patch)
tree9ca4734d0da06d589d132d5f74bcc303e41232f5
parent1df83ddc8cdb6a93f4b736f461cec71084bbf095 (diff)
downloadprosody-69f9998d1641846399e3d2818da4fd07ae05739a.tar.gz
prosody-69f9998d1641846399e3d2818da4fd07ae05739a.zip
MUC: Fix global access when setting 'whois', probably resulted in wrong status code return (thanks EmilyRose)
-rw-r--r--plugins/muc/whois.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/whois.lib.lua b/plugins/muc/whois.lib.lua
index a8e1f8d4..2f492c45 100644
--- 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);