Mercurial > xib
diff bridge.py @ 190:6db99e458168
fixed calls to Bot.restart_bridges_delayed(), arguments changed in f52cb2f6e273328e73d75ab4ecf214c8dc9dfe1b
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Sun, 21 Feb 2010 11:53:47 +0100 |
parents | e04410e7e527 |
children | ac89a4a72a62 |
line wrap: on
line diff
--- a/bridge.py +++ b/bridge.py @@ -105,8 +105,8 @@ class Bridge: def _RemoteServerNotFound_handler(self): server = xmpp.protocol.JID(self.xmpp_room_jid).getDomain() bridges = self.bot.findBridges([server]) - error_message = '[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_message) + 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) def _xmpp_join_callback(self, errors):