Mercurial > xib
diff participant.py @ 83:5115ba7d5983
Leave chan only if (really) connected
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Sat, 05 Sep 2009 20:34:04 +0200 |
parents | 90baff5dedb2 |
children | bfa32b017fc9 |
line wrap: on
line diff
--- a/participant.py +++ b/participant.py @@ -216,7 +216,8 @@ class participant: self.muc.leave(auto_decode(message)) self.bridge.bot.close_xmpp_connection(self.nickname) if isinstance(self.irc_connection, ServerConnection): - self.irc_connection.part(self.bridge.irc_room, message=message) + if self.irc_connection.really_connected == True: + self.irc_connection.part(self.bridge.irc_room, message=message) self.irc_connection.used_by -= 1 if self.irc_connection.used_by < 1: self.irc_connection.close(message)