comparison bot.py @ 70:01f1c6cb7447

Prevent unjustified switching to limited mode Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sun, 30 Aug 2009 22:43:42 +0200
parents 8fc496eaa17b
children 6c4b841144f6
comparison
equal deleted inserted replaced
69:0a2b9e84bbde 70:01f1c6cb7447
442 # From here the event is shown 442 # From here the event is shown
443 self.error(event_str, debug=True) 443 self.error(event_str, debug=True)
444 444
445 445
446 if event.eventtype() == 'disconnect': 446 if event.eventtype() == 'disconnect':
447 if len(event.arguments()) > 0 and event.arguments()[0] == 'Connection reset by peer':
448 return
449
447 # TODO: lock self.bridges for thread safety 450 # TODO: lock self.bridges for thread safety
448 for bridge in self.bridges: 451 for bridge in self.bridges:
449 if connection.server != bridge.irc_server: 452 if connection.server != bridge.irc_server:
450 continue 453 continue
451 try: 454 try: