def connectionLost(self, reason): logger.info('Lost client "{nick}"', nick=self._client.nick) announce = Protocol.quit(self._client, "Connection lost") for channel in self._client.channels: channel.clients.remove(self._client) channel.send(announce) self.factory.clients.remove(self)
def connectionLost(self, reason): logger.info('Lost client "{nick}"', nick=self._client.nick) announce = Protocol.quit(self._client, "Connection lost") for channel in self._client.channels: channel.clients.remove(self._client) channel.send(announce) self.factory.clients.remove(self)