diff options
author | Kim Alvefur <zash@zash.se> | 2016-01-11 13:44:48 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-01-11 13:44:48 +0100 |
commit | e49c053133ec90f007ba2f8575773f3cf5c20b54 (patch) | |
tree | 9ca4734d0da06d589d132d5f74bcc303e41232f5 | |
parent | 0f30c79999e4572c62f8f5bdfd29771b746db8d3 (diff) | |
download | prosody-e49c053133ec90f007ba2f8575773f3cf5c20b54.tar.gz prosody-e49c053133ec90f007ba2f8575773f3cf5c20b54.zip |
MUC: Fix global access when setting 'whois', probably resulted in wrong status code return (thanks EmilyRose)
-rw-r--r-- | plugins/muc/whois.lib.lua | 2 |
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); |