Mercurial > xib
comparison bot.py @ 181:803e00d72cb7
minor fix in bot.py, a line I forgot to change in the previous patch
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Fri, 19 Feb 2010 13:33:02 +0100 |
parents | 102f895347ff |
children | 8f67684fee23 |
comparison
equal
deleted
inserted
replaced
180:102f895347ff | 181:803e00d72cb7 |
---|---|
671 # Unhandled events | 671 # Unhandled events |
672 if not printed_event: | 672 if not printed_event: |
673 self.error(say_levels.debug, 'The following IRC event was not handled:\n'+event_str+'\n', send_to_admins=True) | 673 self.error(say_levels.debug, 'The following IRC event was not handled:\n'+event_str+'\n', send_to_admins=True) |
674 else: | 674 else: |
675 self.error(1, 'event not handled', debug=True) | 675 self.error(1, 'event not handled', debug=True) |
676 self._send_message_to_admins('[Debug] The following IRC event was not handled:\n'+event_str) | 676 self._send_message_to_admins(say_levels.debug, 'The following IRC event was not handled:\n'+event_str) |
677 | 677 |
678 | 678 |
679 def _send_message_to_admins(self, importance, message): | 679 def _send_message_to_admins(self, importance, message): |
680 """[Internal] Send XMPP Message to bot admin(s)""" | 680 """[Internal] Send XMPP Message to bot admin(s)""" |
681 for admin in self.admins: | 681 for admin in self.admins: |