Mercurial > xib
comparison participant.py @ 78:a8749705fe94
Fixed IRC quit event handling
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Fri, 04 Sep 2009 14:21:48 +0200 |
parents | fa291fd20480 |
children | 90baff5dedb2 |
comparison
equal
deleted
inserted
replaced
77:686724c5183c | 78:a8749705fe94 |
---|---|
202 message = '' | 202 message = '' |
203 if isinstance(self.xmpp_c, xmpp.client.Client): | 203 if isinstance(self.xmpp_c, xmpp.client.Client): |
204 self.muc.leave(auto_decode(message)) | 204 self.muc.leave(auto_decode(message)) |
205 self.bridge.bot.close_xmpp_connection(self.nickname) | 205 self.bridge.bot.close_xmpp_connection(self.nickname) |
206 if isinstance(self.irc_connection, ServerConnection): | 206 if isinstance(self.irc_connection, ServerConnection): |
207 self.irc_connection.part(self.bridge.irc_room, message=message) | |
207 self.irc_connection.used_by -= 1 | 208 self.irc_connection.used_by -= 1 |
208 if self.irc_connection.used_by < 1: | 209 if self.irc_connection.used_by < 1: |
209 self.irc_connection.close(message) | 210 self.irc_connection.close(message) |
210 self.irc_connection = None | 211 self.irc_connection = None |
211 self.nickname = None | 212 self.nickname = None |