'in_args' -> 'min_args'

This commit is contained in:
jesopo 2019-07-01 19:23:39 +01:00
parent 6a823fac52
commit ba581d8622

View file

@ -70,7 +70,7 @@ class Module(ModuleManager.BaseModule):
event["stdout"].write("Removed ignore for '%s'%s" % event["stdout"].write("Removed ignore for '%s'%s" %
(user.nickname, for_str)) (user.nickname, for_str))
@utils.hook("received.command.serverignore", in_args=1) @utils.hook("received.command.serverignore", min_args=1)
def server_ignore(self, event): def server_ignore(self, event):
""" """
:permission: server-ignore :permission: server-ignore
@ -86,7 +86,7 @@ class Module(ModuleManager.BaseModule):
event["stdout"].write("Now ignoring '%s' for %s" % event["stdout"].write("Now ignoring '%s' for %s" %
(command, str(event["server"]))) (command, str(event["server"])))
@utils.hook("received.command.serverunignore", in_args=1) @utils.hook("received.command.serverunignore", min_args=1)
def server_unignore(self, event): def server_unignore(self, event):
""" """
:permission: server-unignore :permission: server-unignore