From f9446a3663d39e297770a1bde15f9a3bd2fe58da Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 29 Jan 2019 00:14:33 +0000 Subject: [PATCH] Show an error when an unknown subcommand is given to !access (channel_access.py) --- modules/channel_access.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/channel_access.py b/modules/channel_access.py index 30bd00c4..f7ba7aae 100644 --- a/modules/channel_access.py +++ b/modules/channel_access.py @@ -64,3 +64,5 @@ class Module(ModuleManager.BaseModule): event["target"].del_user_setting(target.get_id(), "access") event["stdout"].write("Removed permission from %s: %s" % ( target.nickname, " ".join(event["args_split"][2:]))) + else: + event["stderr"].write("Unknown command '%s'" % subcommand)