Mercurial > xib
comparison participant.py @ 136:7dc6a1764c4f
handle irclib.ServerNotConnectedError
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Sat, 16 Jan 2010 14:09:53 +0100 |
parents | 922858915907 |
children | 9f39cead20cb |
comparison
equal
deleted
inserted
replaced
135:922858915907 | 136:7dc6a1764c4f |
---|---|
288 if action: | 288 if action: |
289 self.irc_connection.action(self.bridge.irc_room, message) | 289 self.irc_connection.action(self.bridge.irc_room, message) |
290 else: | 290 else: |
291 self.irc_connection.privmsg(self.bridge.irc_room, message) | 291 self.irc_connection.privmsg(self.bridge.irc_room, message) |
292 except ServerNotConnectedError: | 292 except ServerNotConnectedError: |
293 self.irc_connection.connect() | |
293 bot_say = True | 294 bot_say = True |
294 elif not isinstance(self.xmpp_c, xmpp.client.Client): | 295 elif not isinstance(self.xmpp_c, xmpp.client.Client): |
295 bot_say = True | 296 bot_say = True |
296 if bot_say: | 297 if bot_say: |
297 if action: | 298 if action: |