comparison bot.py @ 228:3c493741e53a

removed TODO, we don't need to lock self.bridges because lists don't pose concurrency problems Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sun, 07 Mar 2010 17:27:51 +0100
parents da8fbaf69242
children d5a126cf119c
comparison
equal deleted inserted replaced
227:87fa6bc893de 228:3c493741e53a
502 return 502 return
503 if nickname == self.nickname: 503 if nickname == self.nickname:
504 self.error(1, 'ignoring IRC '+event.eventtype()+' sent by self', debug=True) 504 self.error(1, 'ignoring IRC '+event.eventtype()+' sent by self', debug=True)
505 return 505 return
506 506
507 # TODO: lock self.bridges for thread safety
508 for bridge in self.bridges: 507 for bridge in self.bridges:
509 if connection.server != bridge.irc_server: 508 if connection.server != bridge.irc_server:
510 continue 509 continue
511 510
512 try: 511 try: