'event' doesn't exist in _ban
This commit is contained in:
parent
02f9c0e02b
commit
c214d84643
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue