Mercurial > xib
comparison bot.py @ 200:740effa74c18
bugfix for previous commit, forgot "self" argument for say_on_XMPP_through_bridge
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Thu, 25 Feb 2010 20:42:34 +0100 |
parents | dcabe54deeba |
children | de574314990e |
comparison
equal
deleted
inserted
replaced
199:dcabe54deeba | 200:740effa74c18 |
---|---|
284 break | 284 break |
285 | 285 |
286 return | 286 return |
287 | 287 |
288 return | 288 return |
289 | |
290 if self.debug: | |
291 self.error(1, 'presence was not handled', debug=True) | |
292 else: | |
293 self.error(say_levels.debug, 'Unhandled XMPP presence:\n'+message.__str__(fancy=1)) | |
289 | 294 |
290 | 295 |
291 def _xmpp_iq_handler(self, dispatcher, iq): | 296 def _xmpp_iq_handler(self, dispatcher, iq): |
292 """[Internal] Manage XMPP IQs.""" | 297 """[Internal] Manage XMPP IQs.""" |
293 | 298 |
425 # we don't have the permission to speak | 430 # we don't have the permission to speak |
426 # let's remove the bridge and tell admins | 431 # let's remove the bridge and tell admins |
427 self.error(say_levels.error, 'Not allowed to speak on the XMPP MUC of bridge '+str(b)+', stopping it', send_to_admins=True) | 432 self.error(say_levels.error, 'Not allowed to speak on the XMPP MUC of bridge '+str(b)+', stopping it', send_to_admins=True) |
428 b.stop(message='Not allowed to speak on the XMPP MUC, stopping the bridge') | 433 b.stop(message='Not allowed to speak on the XMPP MUC, stopping the bridge') |
429 else: | 434 else: |
430 self.error(2, 'recevied unknown error message\n'+message.__str__(fancy=1), debug=True) | 435 self.error(say_levels.debug, 'recevied unknown error message\n'+message.__str__(fancy=1)) |
431 return | 436 return |
432 | 437 |
433 self.error(2, 'recevied unknown error message\n'+message.__str__(fancy=1), debug=True) | 438 self.error(say_levels.debug, 'received unknown error message\n'+message.__str__(fancy=1)) |
434 | 439 |
435 else: | 440 else: |
436 self.error(2, 'Received XMPP message of unknown type "'+str(message.getType())+'".\n'+message.__str__(fancy=1), debug=True) | 441 self.error(say_levels.debug, 'Received XMPP message of unknown type "'+str(message.getType())+'".\n'+message.__str__(fancy=1)) |
437 | 442 |
438 | 443 |
439 def _irc_event_handler(self, connection, event): | 444 def _irc_event_handler(self, connection, event): |
440 """[Internal] Manage IRC events""" | 445 """[Internal] Manage IRC events""" |
441 | 446 |