Changeset

1349:1d6c4a6c75e5

util.muc: Fixed error occuring on room leave
author Waqas Hussain <waqas20@gmail.com>
date Sun, 14 Jun 2009 16:28:01 +0500
parents 1348:ffa70c0df850
children 1350:ea43c371228a
files util/muc.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/muc.lua	Sun Jun 14 14:28:20 2009 +0500
+++ b/util/muc.lua	Sun Jun 14 16:28:01 2009 +0500
@@ -195,7 +195,7 @@
 				log("debug", "%s leaving %s", current_nick, room);
 				local data = self._participants[current_nick];
 				data.role = 'none';
-				room_broadcast_presence(room, pr);
+				room_broadcast_presence(self, pr);
 				self._participants[current_nick] = nil;
 				self._jid_nick[from] = nil;
 			end