'event' doesn't exist in _ban

This commit is contained in:
jesopo 2019-07-17 14:59:25 +01:00
parent 02f9c0e02b
commit c214d84643

View file

@ -95,9 +95,9 @@ class Module(ModuleManager.BaseModule):
return self._ban_user(channel, ban, target_user) return self._ban_user(channel, ban, target_user)
else: else:
if ban: if ban:
event["target"].send_ban(target) channel.send_ban(target)
else: else:
event["target"].send_unban(target) channel.send_unban(target)
return target return target
@utils.hook("received.command.ban", private_only=True, min_args=2) @utils.hook("received.command.ban", private_only=True, min_args=2)