From 1b94a72a658b7a87d5190d227cf3901eb69ca147 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 1 Feb 2019 12:02:02 +0000 Subject: [PATCH] `apikey` command should have a minimum argument restriction (rest_api.py) --- modules/rest_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/rest_api.py b/modules/rest_api.py index 85a5fc68..7355c039 100644 --- a/modules/rest_api.py +++ b/modules/rest_api.py @@ -110,7 +110,7 @@ class Module(ModuleManager.BaseModule): if self.httpd: 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): """ :help: Generate a new API key