comparison bot.py @ 63:71508f22edb4

Fixed unjustified switching to limited mode Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sat, 29 Aug 2009 21:57:49 +0200
parents 92341dbfb8b7
children 8fc496eaa17b
comparison
equal deleted inserted replaced
62:61491895c607 63:71508f22edb4
444 444
445 445
446 if event.eventtype() == 'disconnect': 446 if event.eventtype() == 'disconnect':
447 # TODO: lock self.bridges for thread safety 447 # TODO: lock self.bridges for thread safety
448 for bridge in self.bridges: 448 for bridge in self.bridges:
449 if connection.server != bridge.irc_server:
450 continue
449 try: 451 try:
450 bridge.getParticipant(connection.get_nickname()) 452 bridge.getParticipant(connection.get_nickname())
451 if bridge.mode == 'normal': 453 if bridge.mode == 'normal':
452 bridge.switchFromNormalToLimitedMode() 454 bridge.switchFromNormalToLimitedMode()
453 except NoSuchParticipantException: 455 except NoSuchParticipantException: