ignore.py: fix permissions
This commit is contained in:
parent
b46314af69
commit
4a6037c774
1 changed files with 2 additions and 3 deletions
|
@ -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"])))
|
||||
|
||||
|
|
Loading…
Reference in a new issue