From ff0ed8200542336f0632e9275990193c5b4bf4d4 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Mon, 7 Sep 2009 20:43:25 +0500 Subject: MUC: Fixed a variable scoping bug causing problems with presence routing on affiliation/role change. --- plugins/muc/muc.lib.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 5ab2c567..65cf3786 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -148,8 +148,8 @@ function room_mt:broadcast_message(stanza, historic) 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); -- cgit v1.2.3