Mercurial > xib
comparison bot.py @ 198:66ed2dcdc4d1
bugfix, «error» → «event.eventtype()», introduced in 41a4f43330ef9e8b7aa94e35bde3162f1da2d4e7
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Tue, 23 Feb 2010 22:54:40 +0100 |
parents | e4ceefab8ba5 |
children | dcabe54deeba |
comparison
equal
deleted
inserted
replaced
197:4a379eb359dd | 198:66ed2dcdc4d1 |
---|---|
636 if connection.get_nickname() == self.nickname: | 636 if connection.get_nickname() == self.nickname: |
637 bridge._join_irc_failed(event.eventtype()) | 637 bridge._join_irc_failed(event.eventtype()) |
638 else: | 638 else: |
639 p = bridge.getParticipant(connection.get_nickname()) | 639 p = bridge.getParticipant(connection.get_nickname()) |
640 p._close_irc_connection('') | 640 p._close_irc_connection('') |
641 p.irc_connection = error | 641 p.irc_connection = event.eventtype() |
642 return | 642 return |
643 | 643 |
644 | 644 |
645 # Ignore events not received on bot connection | 645 # Ignore events not received on bot connection |
646 if connection.get_nickname() != self.nickname: | 646 if connection.get_nickname() != self.nickname: |