changeset 209:c4f058ee3f77

(irclib) use an explicit leave message when auto-restarting the bot Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sat, 06 Mar 2010 15:55:51 +0100
parents 1cae0d82501b
children fb0cf6bf9eab
files irclib.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()