apikey command should have a minimum argument restriction (rest_api.py)

This commit is contained in:
jesopo 2019-02-01 12:02:02 +00:00
parent 520d8b681f
commit 1b94a72a65

View file

@ -110,7 +110,7 @@ class Module(ModuleManager.BaseModule):
if self.httpd: if self.httpd:
self.httpd.shutdown() self.httpd.shutdown()
@utils.hook("received.command.apikey", private_only=True) @utils.hook("received.command.apikey", private_only=True, min_args=1)
def api_key(self, event): def api_key(self, event):
""" """
:help: Generate a new API key :help: Generate a new API key