Mercurial > xib
changeset 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 | 6388579c701d |
children | ba5ecd71065f |
files | bridge.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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()