Mercurial > xib
comparison participant.py @ 252:93990ebdbbaf
minor fix in Participant, reduce code redundancy
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Mon, 08 Mar 2010 23:55:16 +0100 |
parents | 234e8ca6a10c |
children | 3b930e2fad43 |
comparison
equal
deleted
inserted
replaced
251:49c57daff4d7 | 252:93990ebdbbaf |
---|---|
100 except xmpp.muc.RoomIsFull: | 100 except xmpp.muc.RoomIsFull: |
101 self.bridge.say(say_levels.warning, 'XMPP room is full', log=True) | 101 self.bridge.say(say_levels.warning, 'XMPP room is full', log=True) |
102 except xmpp.muc.RemoteServerNotFound: | 102 except xmpp.muc.RemoteServerNotFound: |
103 self.bridge._RemoteServerNotFound_handler() | 103 self.bridge._RemoteServerNotFound_handler() |
104 | 104 |
105 if isinstance(self.xmpp_c, xmpp.client.Client): | 105 self._close_xmpp_connection() |
106 self.bridge.bot.close_xmpp_connection(self.nickname) | |
107 self.xmpp_c = None | |
108 | 106 |
109 | 107 |
110 def create_duplicate_on_irc(self): | 108 def create_duplicate_on_irc(self): |
111 if isinstance(self.xmpp_c, xmpp.client.Client) or isinstance(self.irc_connection, ServerConnection): | 109 if isinstance(self.xmpp_c, xmpp.client.Client) or isinstance(self.irc_connection, ServerConnection): |
112 return | 110 return |