From 719a1c7b0dc885ca02aca702ba2bb49ef3878066 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Wed, 6 Mar 2019 15:03:19 +0100 Subject: irc: Remove unused args for on* onMode will not always receive nick and user argument (i.e. server sets mode). Remove them, since they are unused. --- crocoite/irc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crocoite/irc.py b/crocoite/irc.py index 0303675..0b01413 100644 --- a/crocoite/irc.py +++ b/crocoite/irc.py @@ -257,7 +257,7 @@ class ArgparseBot (bottom.Client): self.send ('JOIN', channel=c) # no need for NAMES here, server sends this automatically - async def onNameReply (self, target, channel_type, channel, users, **kwargs): + async def onNameReply (self, channel, users, **kwargs): # channels may be too big for a single message addusers = dict (map (lambda x: (x.name, x), map (User.fromName, users))) if channel not in self.users: @@ -277,7 +277,7 @@ class ArgparseBot (bottom.Client): ret.append ((action, c)) return ret - async def onMode (self, nick, user, host, channel, modes, params, **kwargs): + async def onMode (self, channel, modes, params, **kwargs): if channel not in self.channels: return @@ -293,7 +293,7 @@ class ArgparseBot (bottom.Client): # unknown mode, ignore pass - async def onPart (self, nick, user, host, message, channel, **kwargs): + async def onPart (self, nick, channel, **kwargs): if channel not in self.channels: return -- cgit v1.2.3