diff bot.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 bd185885d4ca
children c2a8586e64b5
line wrap: on
line diff
--- a/bot.py
+++ b/bot.py
@@ -157,7 +157,7 @@ class Bot(threading.Thread):
 									# MUC server is going down, try to restart the bridges in 1 minute
 									bridges = self.findBridges([from_.getDomain()])
 									m = 'The MUC server '+from_.getDomain()+' seems to be going down, the bot will try to recreate all bridges related to this server in 1 minute'
-									error = (say_levels.warning, m)
+									error = [say_levels.warning, m]
 									self.restart_bridges_delayed(bridges, 60, error)
 									return
 								elif r == '':
@@ -264,8 +264,8 @@ class Bot(threading.Thread):
 										# Remote server not found
 										# Stop bridges that depend on this server
 										bridges = self.findBridges([from_.getDomain()])
-										error_message = '[Error] XMPP Remote server not found: '+from_.getDomain()
-										self.restart_bridges_delayed(bridges, 60, error_message)
+										error = [say_levels.error, 'XMPP Remote server not found: '+from_.getDomain()]
+										self.restart_bridges_delayed(bridges, 60, error)
 									else:
 										raise Exception(presence.__str__(fancy=1).encode('utf-8'))