diff bridge.py @ 5:cb0daec4b778

Added support for IRC "nick" event, fixed participant.changeNickname(), fixed handling of IRC "namreply" event, removed muc._check() because waiting does not solve the problem if it is blocking incoming messages handling Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sun, 16 Aug 2009 17:59:00 +0200
parents 3f651f4fdb4f
children 7cb790f5f243
line wrap: on
line diff
--- a/bridge.py
+++ b/bridge.py
@@ -151,8 +151,8 @@ class bridge:
 			if p.protocol == 'xmpp':
 				i += 1
 				if p.irc_connection:
+					p.irc_connection.closing = True
 					p.irc_connection.disconnect('Bridge is switching to limited mode')
-					p.irc_connection.close()
 					p.irc_connection = None
 		self.irc_connections_limit = i
 		self.bot.error('===> Bridge is switching to limited mode.')