Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
    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)