# HG changeset patch # User Charly COSTE # Date 1267271258 -3600 # Node ID 85a8b457c4b47d27e92bcfb6fac8b92e82f79aaa # Parent 6388579c701d62f851a1d087c303386d035112a3 bugfix, added optional "message" argument to Bridge.restart(), needed since fa73f1292eafabf2ef868c2b056fe045a0704e97 Signed-off-by: Charly COSTE diff --git a/bridge.py b/bridge.py --- a/bridge.py +++ b/bridge.py @@ -337,11 +337,11 @@ class Bridge: 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) - def restart(self, log=True): + def restart(self, message='Restarting bridge', log=True): """Restart the bridge""" # Stop the bridge - self.stop(message='Restarting bridge', log=log) + self.stop(message=message, log=log) # Recreate the bridge self.init2()