From a6c2d80075a7a9b73ba7997f7e85b9ca2e4e1320 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 26 Jan 2020 15:40:49 +0000 Subject: [PATCH] fix channel_op spec arg indexes --- modules/channel_op.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/channel_op.py b/modules/channel_op.py index 452353aa..0a2008b3 100644 --- a/modules/channel_op.py +++ b/modules/channel_op.py @@ -51,8 +51,8 @@ class Module(ModuleManager.BaseModule): @utils.kwarg("help", "Kick a user from a channel") @utils.spec("!<#channel>r~channel !cuser ?string") def kick(self, event): - self._kick(event["server"], event["target"], event["spec"][0], - event["spec"][1]) + self._kick(event["server"], event["spec"][0], event["spec"][1], + event["spec"][2]) def _format_hostmask(self, user, s): vars = {} @@ -121,7 +121,7 @@ class Module(ModuleManager.BaseModule): self._ban(event["server"], event["spec"][0], event["spec"][2], False, event["spec"][1], True) self._kick(event["server"], event["spec"][0], event["spec"][2], - event["spec"][1]) + event["spec"][3]) @utils.hook("received.command.op") @utils.hook("received.command.up", alias_of="op")