aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2020-01-26 15:46:42 +0000
committerGravatar jesopo2020-01-26 15:46:42 +0000
commite26d8c553611472ba66ae83e488b1813d58562ca (patch)
treeee92d4db8817a8a5bfbe1d0471238dada43d2160 /modules
parentfix channel_access spec arg indexes (diff)
signature
fix _ban looking for user instead of cuser, fix kickban _kick arg
Diffstat (limited to 'modules')
-rw-r--r--modules/channel_op.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/channel_op.py b/modules/channel_op.py
index 0a2008b3..0983f450 100644
--- a/modules/channel_op.py
+++ b/modules/channel_op.py
@@ -71,7 +71,7 @@ class Module(ModuleManager.BaseModule):
return self._format_hostmask(user, format)
def _ban(self, server, channel, target, allow_hostmask, time, add):
- if target[0] == "user":
+ if target[0] == "cuser":
hostmask = self._get_hostmask(channel, target[1])
else:
if not allow_hostmask:
@@ -120,7 +120,7 @@ class Module(ModuleManager.BaseModule):
def kickban(self, event):
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],
+ self._kick(event["server"], event["spec"][0], event["spec"][2][1],
event["spec"][3])
@utils.hook("received.command.op")