From b81a03fda97471fb5e3c15e701e6972c3e119c6a Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 30 Jun 2017 21:40:50 -0700 Subject: [PATCH] protocols: Channel.removeuser -> Channel.remove_user --- protocols/clientbot.py | 6 +++--- protocols/ircs2s_common.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/protocols/clientbot.py b/protocols/clientbot.py index 3c5efce..9af5cb9 100644 --- a/protocols/clientbot.py +++ b/protocols/clientbot.py @@ -259,7 +259,7 @@ class ClientbotWrapperProtocol(IRCCommonProtocol): def part(self, source, channel, reason=''): """STUB: Parts a user from a channel.""" - self.channels[channel].removeuser(source) + self.channels[channel].remove_user(source) self.users[source].channels.discard(channel) # Only parts for the main PyLink client are actually forwarded. Others are ignored. @@ -818,7 +818,7 @@ class ClientbotWrapperProtocol(IRCCommonProtocol): del self.kick_queue[channel] # Statekeeping: remove the target from the channel they were previously in. - self.channels[channel].removeuser(target) + self.channels[channel].remove_user(target) try: self.users[target].channels.remove(channel) except KeyError: @@ -907,7 +907,7 @@ class ClientbotWrapperProtocol(IRCCommonProtocol): reason = '' for channel in channels: - self.channels[channel].removeuser(source) + self.channels[channel].remove_user(source) self.users[source].channels -= set(channels) self.call_hooks([source, 'PART', {'channels': channels, 'text': reason}]) diff --git a/protocols/ircs2s_common.py b/protocols/ircs2s_common.py index 047a8f3..1c06368 100644 --- a/protocols/ircs2s_common.py +++ b/protocols/ircs2s_common.py @@ -292,7 +292,7 @@ class IRCS2SProtocol(IRCCommonProtocol): channels = self.to_lower(args[0]).split(',') for channel in channels: - self.channels[channel].removeuser(source) + self.channels[channel].remove_user(source) try: self.users[source].channels.discard(channel) except KeyError: