Mercurial > xib
comparison bot.py @ 184:1e5308a0db55
added 2 IRC events to ignore, 042 and pubnotice
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Fri, 19 Feb 2010 14:38:50 +0100 |
parents | 8f67684fee23 |
children | 70a54da14e63 |
comparison
equal
deleted
inserted
replaced
183:8f67684fee23 | 184:1e5308a0db55 |
---|---|
438 | 438 |
439 | 439 |
440 # Events we always want to ignore | 440 # Events we always want to ignore |
441 if 'all' in event.eventtype() or 'motd' in event.eventtype() or event.eventtype() in ['nicknameinuse', 'nickcollision', 'erroneusnickname']: | 441 if 'all' in event.eventtype() or 'motd' in event.eventtype() or event.eventtype() in ['nicknameinuse', 'nickcollision', 'erroneusnickname']: |
442 return | 442 return |
443 if event.eventtype() in ['pong', 'privnotice', 'ctcp', 'nochanmodes', 'notexttosend', 'currenttopic', 'topicinfo', '328']: | 443 if event.eventtype() in ['pong', 'privnotice', 'ctcp', 'nochanmodes', 'notexttosend', 'currenttopic', 'topicinfo', '328', 'pubnotice', '042']: |
444 self.error(1, 'ignoring IRC '+event.eventtype(), debug=True) | 444 self.error(1, 'ignoring IRC '+event.eventtype(), debug=True) |
445 return | 445 return |
446 | 446 |
447 | 447 |
448 nickname = None | 448 nickname = None |