Mercurial > xib
comparison bot.py @ 77:686724c5183c
Fixed IRC namreply handling
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Thu, 03 Sep 2009 21:47:14 +0200 |
parents | 6034087b1d10 |
children | a8749705fe94 |
comparison
equal
deleted
inserted
replaced
76:75a05faea5ca | 77:686724c5183c |
---|---|
445 return | 445 return |
446 | 446 |
447 if event.eventtype() == 'namreply': | 447 if event.eventtype() == 'namreply': |
448 # TODO: lock self.bridges for thread safety | 448 # TODO: lock self.bridges for thread safety |
449 for bridge in self.getBridges(irc_room=event.arguments()[1].lower(), irc_server=connection.server): | 449 for bridge in self.getBridges(irc_room=event.arguments()[1].lower(), irc_server=connection.server): |
450 for nickname in re.split('(?:^[&@\+]?|(?: [&@\+]?)*)', event.arguments()[2].strip()): | 450 for nickname in re.split('(?:^[&@\+%]?|(?: [&@\+%]?)*)', event.arguments()[2].strip()): |
451 if nickname == '' or nickname == self.nickname: | 451 if nickname == '' or nickname == self.nickname: |
452 continue | 452 continue |
453 bridge.addParticipant('irc', nickname) | 453 bridge.addParticipant('irc', nickname) |
454 return | 454 return |
455 elif event.eventtype() == 'join': | 455 elif event.eventtype() == 'join': |