ignore.py: fix permissions

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

View file

@ -125,7 +125,7 @@ class Module(ModuleManager.BaseModule):
@utils.hook("received.command.serverignore")
@utils.kwarg("help", "Ignore a command on the current server")
@utils.kwarg("permissions", "serverignore")
@utils.kwarg("permission", "serverignore")
@utils.spec("!<command>wordlower")
def server_ignore(self, event):
command = event["spec"][0]
@ -141,7 +141,7 @@ class Module(ModuleManager.BaseModule):
@utils.hook("received.command.serverunignore")
@utils.kwarg("help", "Unignore a command on the current server")
@utils.kwarg("permissions", "serverunignore")
@utils.kwarg("permission", "serverunignore")
@utils.spec("!<command>wordlower")
def server_unignore(self, event):
command = event["spec"][0]
@ -154,4 +154,3 @@ class Module(ModuleManager.BaseModule):
event["server"].del_setting(setting)
event["stdout"].write("No longer ignoring '%s' for %s" %
(command, str(event["server"])))