From c214d8464380a34841ca61903def8132f22974d8 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 17 Jul 2019 14:59:25 +0100 Subject: 'event' doesn't exist in _ban --- modules/channel_op.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') 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) -- cgit v1.3.1-10-gc9f91