comparison bridge.py @ 205:85a8b457c4b4

bugfix, added optional "message" argument to Bridge.restart(), needed since fa73f1292eafabf2ef868c2b056fe045a0704e97 Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sat, 27 Feb 2010 12:47:38 +0100
parents 2a81c480439a
children ba5ecd71065f
comparison
equal deleted inserted replaced
204:6388579c701d 205:85a8b457c4b4
335 335
336 else: 336 else:
337 self.bot.error(say_levels.debug, 'Bad decision tree, p.protocol='+p.protocol+' left_protocol='+left_protocol+'\np.xmpp_c='+str(p.xmpp_c)+'\np.irc_connection='+str(p.irc_connection), send_to_admins=True) 337 self.bot.error(say_levels.debug, 'Bad decision tree, p.protocol='+p.protocol+' left_protocol='+left_protocol+'\np.xmpp_c='+str(p.xmpp_c)+'\np.irc_connection='+str(p.irc_connection), send_to_admins=True)
338 338
339 339
340 def restart(self, log=True): 340 def restart(self, message='Restarting bridge', log=True):
341 """Restart the bridge""" 341 """Restart the bridge"""
342 342
343 # Stop the bridge 343 # Stop the bridge
344 self.stop(message='Restarting bridge', log=log) 344 self.stop(message=message, log=log)
345 345
346 # Recreate the bridge 346 # Recreate the bridge
347 self.init2() 347 self.init2()
348 348
349 349