changeset 208:1cae0d82501b

(irclib) when reconnecting, call .disconnect() before .connect() Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sat, 06 Mar 2010 15:51:19 +0100
parents a97a7e930697
children c4f058ee3f77
files irclib.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/irclib.py
+++ b/irclib.py
@@ -246,6 +246,7 @@ class IRC:
                             if c.real_nickname == self.bot.nickname:
                                 self.bot.restart()
                             else:
+                                c.disconnect(volontary=True)
                                 c.connect()
                     c.lock.release()