Mercurial > xib
diff 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 |
line wrap: on
line diff
--- a/bot.py +++ b/bot.py @@ -439,8 +439,8 @@ class bot(Thread): elif err == 'forbidden': # we don't have the permission to speak # let's remove the bridge and tell admins - self.error('[Error] Not allowed to speak on the XMPP MUC of bridge '+str(b)+', removing it', send_to_admins=True) - self.removeBridge(b, message='Not allowed to speak on the XMPP MUC, removing bridge.') + self.error('[Error] Not allowed to speak on the XMPP MUC of bridge '+str(b)+', stopping it', send_to_admins=True) + b.stop(message='Not allowed to speak on the XMPP MUC, stopping bridge.') else: self.error('==> Debug: recevied unknown error message', debug=True) self.error(message.__str__(fancy=1), debug=True)