Mercurial > xib
comparison bot.py @ 112:a817ad05dd1d
stop bridge on error instead of removing it
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Fri, 27 Nov 2009 23:18:54 +0100 |
parents | 59401ac0f47a |
children | 6daf0854aa9f |
comparison
equal
deleted
inserted
replaced
111:59401ac0f47a | 112:a817ad05dd1d |
---|---|
437 # let's restart the bot | 437 # let's restart the bot |
438 self.restart() | 438 self.restart() |
439 elif err == 'forbidden': | 439 elif err == 'forbidden': |
440 # we don't have the permission to speak | 440 # we don't have the permission to speak |
441 # let's remove the bridge and tell admins | 441 # let's remove the bridge and tell admins |
442 self.error('[Error] Not allowed to speak on the XMPP MUC of bridge '+str(b)+', removing it', send_to_admins=True) | 442 self.error('[Error] Not allowed to speak on the XMPP MUC of bridge '+str(b)+', stopping it', send_to_admins=True) |
443 self.removeBridge(b, message='Not allowed to speak on the XMPP MUC, removing bridge.') | 443 b.stop(message='Not allowed to speak on the XMPP MUC, stopping bridge.') |
444 else: | 444 else: |
445 self.error('==> Debug: recevied unknown error message', debug=True) | 445 self.error('==> Debug: recevied unknown error message', debug=True) |
446 self.error(message.__str__(fancy=1), debug=True) | 446 self.error(message.__str__(fancy=1), debug=True) |
447 return | 447 return |
448 | 448 |