Mercurial > xib
comparison bot.py @ 186:70a54da14e63
minor fix in bot.py, removed a buggy test
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Sat, 20 Feb 2010 17:05:12 +0100 |
parents | 1e5308a0db55 |
children | 594f570f4657 |
comparison
equal
deleted
inserted
replaced
185:6173873c6b0d | 186:70a54da14e63 |
---|---|
552 continue | 552 continue |
553 | 553 |
554 | 554 |
555 # Leaving events | 555 # Leaving events |
556 if event.eventtype() == 'quit' or event.eventtype() == 'part' and event.target().lower() == bridge.irc_room: | 556 if event.eventtype() == 'quit' or event.eventtype() == 'part' and event.target().lower() == bridge.irc_room: |
557 if event.eventtype() == 'quit' and ( bridge.mode != 'normal' or isinstance(from_.irc_connection, irclib.ServerConnection) ): | |
558 continue | |
559 if len(event.arguments()) > 0: | 557 if len(event.arguments()) > 0: |
560 leave_message = event.arguments()[0] | 558 leave_message = event.arguments()[0] |
561 elif event.eventtype() == 'quit': | 559 elif event.eventtype() == 'quit': |
562 leave_message = 'Left server.' | 560 leave_message = 'Left server.' |
563 elif event.eventtype() == 'part': | 561 elif event.eventtype() == 'part': |