# HG changeset patch # User Kim Alvefur # Date 1452516288 -3600 # Node ID 47a2deb74b56950cb9125203e944a3832d47fb03 # Parent 3ff83773ffc0322b60a861df0a2eb866a31f45d7 MUC: Fix global access when setting 'whois', probably resulted in wrong status code return (thanks EmilyRose) diff -r 3ff83773ffc0 -r 47a2deb74b56 plugins/muc/whois.lib.lua --- a/plugins/muc/whois.lib.lua Sun Jan 10 03:57:17 2016 +0100 +++ b/plugins/muc/whois.lib.lua Mon Jan 11 13:44:48 2016 +0100 @@ -43,7 +43,7 @@ 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);