comparison participant.py @ 56:b048c4c03b00

Fixed encoding issues Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Thu, 27 Aug 2009 22:31:47 +0200
parents 5afa22125334
children 0c00cf22492d
comparison
equal deleted inserted replaced
55:c09f9523fe2e 56:b048c4c03b00
67 if self.irc_connection != None or self.xmpp_c != None or self.bridge.mode != 'normal': 67 if self.irc_connection != None or self.xmpp_c != None or self.bridge.mode != 'normal':
68 return 68 return
69 sleep(1) # try to prevent "reconnecting too fast" shit 69 sleep(1) # try to prevent "reconnecting too fast" shit
70 self.irc_connection = self.bridge.bot.irc.server(self.bridge.irc_server, self.bridge.irc_port, self.nickname) 70 self.irc_connection = self.bridge.bot.irc.server(self.bridge.irc_server, self.bridge.irc_port, self.nickname)
71 self.irc_connection.connect(nick_callback=self._irc_nick_callback) 71 self.irc_connection.connect(nick_callback=self._irc_nick_callback)
72 self.irc_connection.join(self.bridge.irc_room) 72 if self.irc_connection != None:
73 self.irc_connection.join(self.bridge.irc_room)
73 74
74 75
75 def _irc_nick_callback(self, error, arguments=[]): 76 def _irc_nick_callback(self, error, arguments=[]):
76 if error == None: 77 if error == None:
77 self.irc_connection.join(self.bridge.irc_room) 78 self.irc_connection.join(self.bridge.irc_room)