Show an error when an unknown subcommand is given to !access (channel_access.py)

This commit is contained in:
jesopo 2019-01-29 00:14:33 +00:00
parent 10b2ace653
commit f9446a3663

View file

@ -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)