aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-07-17 14:59:25 +0100
committerGravatar jesopo2019-07-17 14:59:25 +0100
commitc214d8464380a34841ca61903def8132f22974d8 (patch)
treeea822e865a1cc400cbaf40568ccb2182890a4ec4 /modules
parentlowerify isup.py's _name (diff)
'event' doesn't exist in _ban
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 f7cbc484..151dc12a 100644
--- a/modules/channel_op.py
+++ b/modules/channel_op.py
@@ -95,9 +95,9 @@ class Module(ModuleManager.BaseModule):
return self._ban_user(channel, ban, target_user)
else:
if ban:
- event["target"].send_ban(target)
+ channel.send_ban(target)
else:
- event["target"].send_unban(target)
+ channel.send_unban(target)
return target
@utils.hook("received.command.ban", private_only=True, min_args=2)