comparison 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
comparison
equal deleted inserted replaced
189:e04410e7e527 190:6db99e458168
103 103
104 104
105 def _RemoteServerNotFound_handler(self): 105 def _RemoteServerNotFound_handler(self):
106 server = xmpp.protocol.JID(self.xmpp_room_jid).getDomain() 106 server = xmpp.protocol.JID(self.xmpp_room_jid).getDomain()
107 bridges = self.bot.findBridges([server]) 107 bridges = self.bot.findBridges([server])
108 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' 108 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']
109 self.bot.restart_bridges_delayed(bridges, 300, error_message) 109 self.bot.restart_bridges_delayed(bridges, 300, error)
110 110
111 111
112 def _xmpp_join_callback(self, errors): 112 def _xmpp_join_callback(self, errors):
113 """Called by muc._xmpp_presence_handler""" 113 """Called by muc._xmpp_presence_handler"""
114 if len(errors) == 0: 114 if len(errors) == 0: