diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-09-07 20:43:25 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-09-07 20:43:25 +0500 |
commit | ff0ed8200542336f0632e9275990193c5b4bf4d4 (patch) | |
tree | 8eebca65485e657ce83e63b374cd252fc8508006 /plugins/muc/muc.lib.lua | |
parent | f8a4bc6a99c8121a72bde35a3a5dc4005db5b5c4 (diff) | |
download | prosody-ff0ed8200542336f0632e9275990193c5b4bf4d4.tar.gz prosody-ff0ed8200542336f0632e9275990193c5b4bf4d4.zip |
MUC: Fixed a variable scoping bug causing problems with presence routing on affiliation/role change.
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r-- | plugins/muc/muc.lib.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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); |