ignore.py: should actually be permission

This commit is contained in:
David Schultz 2021-07-22 13:15:12 -05:00 committed by GitHub
parent f3c8d86b37
commit b71afea8c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,7 @@ class Module(ModuleManager.BaseModule):
return utils.consts.PERMISSION_HARD_FAIL, None return utils.consts.PERMISSION_HARD_FAIL, None
@utils.hook("received.command.ignore", min_args=1) @utils.hook("received.command.ignore", min_args=1)
@utils.kwarg("permissions", "ignore") @utils.kwarg("permission", "ignore")
@utils.kwarg("help", "Ignore commands from a given user") @utils.kwarg("help", "Ignore commands from a given user")
@utils.spec("?duration !<nickname>ouser ?<command>wordlower") @utils.spec("?duration !<nickname>ouser ?<command>wordlower")
def ignore(self, event): def ignore(self, event):
@ -73,7 +73,7 @@ class Module(ModuleManager.BaseModule):
@utils.hook("received.command.unignore") @utils.hook("received.command.unignore")
@utils.kwarg("help", "Unignore commands from a given user") @utils.kwarg("help", "Unignore commands from a given user")
@utils.kwarg("permissions", "unignore") @utils.kwarg("permission", "unignore")
@utils.spec("!<nickname>ouser ?<command>wordlower") @utils.spec("!<nickname>ouser ?<command>wordlower")
def unignore(self, event): def unignore(self, event):
setting = "ignore" setting = "ignore"
@ -99,7 +99,7 @@ class Module(ModuleManager.BaseModule):
@utils.kwarg("channel_only", True) @utils.kwarg("channel_only", True)
@utils.kwarg("min_args", 1) @utils.kwarg("min_args", 1)
@utils.kwarg("usage", "<nickname>") @utils.kwarg("usage", "<nickname>")
@utils.kwarg("permissions", "cignore") @utils.kwarg("permission", "cignore")
@utils.kwarg("require_mode", "o") @utils.kwarg("require_mode", "o")
@utils.kwarg("require_access", "high,cignore") @utils.kwarg("require_access", "high,cignore")
def cignore(self, event): def cignore(self, event):
@ -125,7 +125,7 @@ class Module(ModuleManager.BaseModule):
@utils.hook("received.command.serverignore") @utils.hook("received.command.serverignore")
@utils.kwarg("help", "Ignore a command on the current server") @utils.kwarg("help", "Ignore a command on the current server")
@utils.kwarg("permissions", "serverignore") @utils.kwarg("permission", "serverignore")
@utils.spec("!<command>wordlower") @utils.spec("!<command>wordlower")
def server_ignore(self, event): def server_ignore(self, event):
command = event["spec"][0] command = event["spec"][0]
@ -141,7 +141,7 @@ class Module(ModuleManager.BaseModule):
@utils.hook("received.command.serverunignore") @utils.hook("received.command.serverunignore")
@utils.kwarg("help", "Unignore a command on the current server") @utils.kwarg("help", "Unignore a command on the current server")
@utils.kwarg("permissions", "serverunignore") @utils.kwarg("permission", "serverunignore")
@utils.spec("!<command>wordlower") @utils.spec("!<command>wordlower")
def server_unignore(self, event): def server_unignore(self, event):
command = event["spec"][0] command = event["spec"][0]