Mercurial > xib
comparison bridge.py @ 22:e2bd4de698e5
Solved an XMPP resource conflict that would have happened when someone on IRC changed its nickname and later its old nickname would be used again. In other words, the bot no longer uses nicknames as XMPP resources.
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Thu, 20 Aug 2009 17:49:40 +0200 |
parents | 801160b4136f |
children | 4e1f27ea527b |
comparison
equal
deleted
inserted
replaced
21:801160b4136f | 22:e2bd4de698e5 |
---|---|
117 except NoSuchParticipantException: | 117 except NoSuchParticipantException: |
118 pass | 118 pass |
119 self.bot.error('===> Debug: adding participant "'+nickname+'" from "'+protocol+'" to bridge "'+str(self)+'"', debug=True) | 119 self.bot.error('===> Debug: adding participant "'+nickname+'" from "'+protocol+'" to bridge "'+str(self)+'"', debug=True) |
120 try: | 120 try: |
121 p = participant(self, protocol, nickname) | 121 p = participant(self, protocol, nickname) |
122 except IOError: | |
123 self.bot.error('===> Debug: IOError while adding participant "'+nickname+'" from "'+protocol+'" to bridge "'+str(self)+'", reconnectiong ...', debug=True) | |
124 p.xmpp_c.reconnectAndReauth() | |
122 except: | 125 except: |
123 self.bot.error('===> Debug: unknown error while adding participant "'+nickname+'" from "'+protocol+'" to bridge "'+str(self)+'"', debug=True) | 126 self.bot.error('===> Debug: unknown error while adding participant "'+nickname+'" from "'+protocol+'" to bridge "'+str(self)+'"', debug=True) |
124 traceback.print_exc() | 127 traceback.print_exc() |
125 return | 128 return |
126 self.participants.append(p) | 129 self.participants.append(p) |