# HG changeset patch # User Charly COSTE # Date 1267887351 -3600 # Node ID c4f058ee3f773401d40d4ee151b7f33374dd5d34 # Parent 1cae0d82501b52df85177f92e199a5cc5c64ad6e (irclib) use an explicit leave message when auto-restarting the bot Signed-off-by: Charly COSTE diff --git a/irclib.py b/irclib.py --- a/irclib.py +++ b/irclib.py @@ -244,7 +244,7 @@ class IRC: c.process_data() except ServerNotConnectedError: if c.real_nickname == self.bot.nickname: - self.bot.restart() + self.bot.restart(message='Lost bot IRC connection') else: c.disconnect(volontary=True) c.connect()