# HG changeset patch # User Charly COSTE # Date 1267887079 -3600 # Node ID 1cae0d82501b52df85177f92e199a5cc5c64ad6e # Parent a97a7e930697053213a85143e6c0c8b8ad0ee561 (irclib) when reconnecting, call .disconnect() before .connect() Signed-off-by: Charly COSTE diff --git a/irclib.py b/irclib.py --- 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()