# HG changeset patch # User Charly COSTE # Date 1263980286 -3600 # Node ID 6b91ca42df98e87ff454f49cfdee4bd6b676bb39 # Parent 54c0e77370fd9335b6ee9f0506dd8f999e0c3208 change ServerConnection.really_connected to False in irclib.ServerConnection.disconnect() Signed-off-by: Charly COSTE diff --git a/irclib.py b/irclib.py --- a/irclib.py +++ b/irclib.py @@ -467,7 +467,7 @@ class ServerConnection(Connection): self.irclibobj.bot.error('===> Debug: using existing IRC connection for '+self.__str__()+', this connection is now used by '+str(self.used_by)+' bridges', debug=True) if nick_callback != None: self.add_nick_callback(nick_callback) - if self.really_connected == True: + if self.really_connected: self._call_nick_callbacks(None) self.lock.release() return self @@ -754,6 +754,8 @@ class ServerConnection(Connection): if self.connected: self.connected = False + if self.really_connected: + self.really_connected = False if self.socket and self.socket != 'closed': self.quit(message)