Mercurial > xib
diff bridge.py @ 262:db77ef37ff2c
fixed Bot.restart_bridges_delayed: removed buggy and useless test and improved error messages
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Mon, 22 Mar 2010 18:35:09 +0100 |
parents | 9a2302e8382b |
children | 73d6e284c18d |
line wrap: on
line diff
--- a/bridge.py +++ b/bridge.py @@ -109,8 +109,8 @@ class Bridge: def _RemoteServerNotFound_handler(self): server = xmpp.protocol.JID(self.xmpp_room_jid).getDomain() bridges = self.bot.iter_bridges(patterns=[server]) - error = [say_levels.warning, 'The MUC server '+server+' seems to be down, the bot will try to recreate all bridges related to this server in 5 minutes'] - self.bot.restart_bridges_delayed(bridges, 300, error) + m = 'The MUC server '+server+' seems to be down' + self.bot.restart_bridges_delayed(bridges, 300, say_levels.warning, m) def _xmpp_join_callback(self, errors):