Merge 0.10->trunk
[prosody.git] / plugins / muc / whois.lib.lua
index a8e1f8d419bd0c89591e0b11dfa72633bc690692..2f492c450dcbc5eb968d11c3730f761800fa1ff2 100644 (file)
@@ -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);