comparison bridge.py @ 101:29d3b85c6286

Minor fixes/improvements Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Fri, 20 Nov 2009 15:30:07 +0100
parents 6289ac5a2db7
children b3eba9489329
comparison
equal deleted inserted replaced
100:6289ac5a2db7 101:29d3b85c6286
84 self.irc_connection.join(self.irc_room) 84 self.irc_connection.join(self.irc_room)
85 self.bot.error('===> Debug: successfully connected on IRC side of bridge "'+str(self)+'"', debug=True) 85 self.bot.error('===> Debug: successfully connected on IRC side of bridge "'+str(self)+'"', debug=True)
86 self.say('[Notice] bridge "'+str(self)+'" is running in '+self.mode+' mode', on_xmpp=False) 86 self.say('[Notice] bridge "'+str(self)+'" is running in '+self.mode+' mode', on_xmpp=False)
87 else: 87 else:
88 self.mode = None 88 self.mode = None
89 if self.muc.connected == True: 89 if self.xmpp_room.connected == True:
90 self.say('[Error] failed to connect to the IRC chan, leaving ...', on_irc=False) 90 self.say('[Error] failed to connect to the IRC chan, leaving ...', on_irc=False)
91 try: 91 try:
92 if error == 'nicknameinuse': 92 if error == 'nicknameinuse':
93 raise Exception('[Error] "'+self.bot.nickname+'" is already used in the IRC chan or reserved on the IRC server of bridge "'+str(self)+'"') 93 raise Exception('[Error] "'+self.bot.nickname+'" is already used in the IRC chan or reserved on the IRC server of bridge "'+str(self)+'"')
94 elif error == 'nickcollision': 94 elif error == 'nickcollision':