diff bridge.py @ 216:d527d7b75f56

merged Bot.find_bridges and Bot.get_bridges into Bot.iter_bridges, btw we don't need to lock Bot.bridges because lists don't raise RuntimeError Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sat, 06 Mar 2010 22:55:47 +0100
parents b900585bdbbb
children 63289aa1dea7
line wrap: on
line diff
--- a/bridge.py
+++ b/bridge.py
@@ -100,7 +100,7 @@ class Bridge:
 	
 	def _RemoteServerNotFound_handler(self):
 		server = xmpp.protocol.JID(self.xmpp_room_jid).getDomain()
-		bridges = self.bot.find_bridges([server])
+		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)