From cb111f0c93ba423759538ee32181852aefd10d0e Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 20 Nov 2019 12:02:51 +0000 Subject: [PATCH] show error on unknown !alias subcommand --- modules/aliases.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/aliases.py b/modules/aliases.py index 0c407c1d..0a70c792 100644 --- a/modules/aliases.py +++ b/modules/aliases.py @@ -112,3 +112,6 @@ class Module(ModuleManager.BaseModule): target.del_setting(setting) event["stdout"].write("Removed '%s' alias" % alias) + + else: + raise utils.EventError("Unknown subcommand '%s'" % subcommand)