diff 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
line wrap: on
line diff
--- a/participant.py
+++ b/participant.py
@@ -290,6 +290,7 @@ class Participant:
 					else:
 						self.irc_connection.privmsg(self.bridge.irc_room, message)
 				except ServerNotConnectedError:
+					self.irc_connection.connect()
 					bot_say = True
 			elif not isinstance(self.xmpp_c, xmpp.client.Client):
 				bot_say = True