Changeset

1751:55ee6e792e3e

MUC: Fixed a variable scoping bug causing problems with presence routing on affiliation/role change.
author Waqas Hussain <waqas20@gmail.com>
date Mon, 07 Sep 2009 20:43:25 +0500
parents 1750:a1c18470eeee
children 1752:4db786919805
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);