Mon, 07 Sep 2009 20:43:25 +0500
MUC: Fixed a variable scoping bug causing problems with presence routing on affiliation/role change.
plugins/muc/muc.lib.lua | file | annotate | diff | comparison | revisions |
--- 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);