Mercurial > xib
comparison bot.py @ 241:9c039594435d
ignore IRC "topic" event
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Mon, 08 Mar 2010 11:59:24 +0100 |
parents | a6c37733357a |
children | 60645c505f11 |
comparison
equal
deleted
inserted
replaced
240:ebd67e3e4866 | 241:9c039594435d |
---|---|
469 | 469 |
470 | 470 |
471 # Events we always want to ignore | 471 # Events we always want to ignore |
472 if 'all' in event.eventtype() or 'motd' in event.eventtype() or event.eventtype() in ['nicknameinuse', 'nickcollision', 'erroneusnickname']: | 472 if 'all' in event.eventtype() or 'motd' in event.eventtype() or event.eventtype() in ['nicknameinuse', 'nickcollision', 'erroneusnickname']: |
473 return | 473 return |
474 if event.eventtype() in ['pong', 'privnotice', 'ctcp', 'nochanmodes', 'notexttosend', 'currenttopic', 'topicinfo', '328', 'pubnotice', '042', 'umode', 'welcome', 'yourhost', 'created', 'myinfo', 'featurelist', 'luserclient', 'luserop', 'luserchannels', 'luserme', 'n_local', 'n_global', 'endofnames', 'luserunknown', 'luserconns', 'inviteonlychan', 'bannedfromchan', 'channelisfull', 'badchannelkey']: | 474 if event.eventtype() in ['pong', 'privnotice', 'ctcp', 'nochanmodes', 'notexttosend', 'currenttopic', 'topicinfo', '328', 'pubnotice', '042', 'umode', 'welcome', 'yourhost', 'created', 'myinfo', 'featurelist', 'luserclient', 'luserop', 'luserchannels', 'luserme', 'n_local', 'n_global', 'endofnames', 'luserunknown', 'luserconns', 'inviteonlychan', 'bannedfromchan', 'channelisfull', 'badchannelkey', 'topic']: |
475 self.error(1, 'ignoring IRC '+event.eventtype(), debug=True) | 475 self.error(1, 'ignoring IRC '+event.eventtype(), debug=True) |
476 return | 476 return |
477 | 477 |
478 | 478 |
479 source_nickname = None | 479 source_nickname = None |