From a19f257bd83fccd053fb025734e04e46eda10da2 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 29 Mar 2020 01:14:01 -0700 Subject: [PATCH] clientbot: remove references to self.irc Reported by @genius3000. --- protocols/clientbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/clientbot.py b/protocols/clientbot.py index f40100a..dabac2b 100644 --- a/protocols/clientbot.py +++ b/protocols/clientbot.py @@ -754,9 +754,9 @@ class ClientbotWrapperProtocol(ClientbotBaseProtocol, IRCCommonProtocol): # Send JOIN hook payloads only for users that we know the ident@host of already. # This is mostly used to resync kicked Clientbot users that can't actually be kicked # after a delay. - if names and hasattr(self.irc.channels[channel], '_clientbot_initial_who_received'): + if names and hasattr(self.channels[channel], '_clientbot_initial_who_received'): log.debug('(%s) handle_353: sending JOIN hook because /WHO was already received for %s', - self.irc.name, channel) + self.name, channel) return {'channel': channel, 'users': names, 'modes': self._channels[channel].modes, 'parse_as': "JOIN"}