summaryrefslogtreecommitdiff
path: root/crocoite
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2019-03-06 15:03:19 +0100
committerLars-Dominik Braun <lars@6xq.net>2019-03-06 15:03:19 +0100
commit719a1c7b0dc885ca02aca702ba2bb49ef3878066 (patch)
tree0bed9c16a9b86e065e041134ba84d688eb5ac225 /crocoite
parent691c2d2c115278b43dd7e99523c114fb57c13fae (diff)
downloadcrocoite-719a1c7b0dc885ca02aca702ba2bb49ef3878066.tar.gz
crocoite-719a1c7b0dc885ca02aca702ba2bb49ef3878066.tar.bz2
crocoite-719a1c7b0dc885ca02aca702ba2bb49ef3878066.zip
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.
Diffstat (limited to 'crocoite')
-rw-r--r--crocoite/irc.py6
1 files 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