# HG changeset patch # User Waqas Hussain # Date 1252338205 -18000 # Node ID 55ee6e792e3e8e179620abb4f903391495fa1c02 # Parent a1c18470eeee9bc55ec3c094f5b4fc1ad0d17b45 MUC: Fixed a variable scoping bug causing problems with presence routing on affiliation/role change. diff -r a1c18470eeee -r 55ee6e792e3e plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Mon Sep 07 20:41:42 2009 +0500 +++ b/plugins/muc/muc.lib.lua Mon Sep 07 20:43:25 2009 +0500 @@ -148,8 +148,8 @@ end end function room_mt:broadcast_except_nick(stanza, nick) - for nick, occupant in pairs(self._occupants) do - if nick ~= nick then + for rnick, occupant in pairs(self._occupants) do + if rnick ~= nick then for jid in pairs(occupant.sessions) do stanza.attr.to = jid; self:route_stanza(stanza);