diff options
| author | 2019-01-29 00:14:33 +0000 | |
|---|---|---|
| committer | 2019-01-29 00:14:33 +0000 | |
| commit | f9446a3663d39e297770a1bde15f9a3bd2fe58da (patch) | |
| tree | 9f08f788cf61327b07f1ea5f7051f64d9bf2b32a /modules | |
| parent | Add `require_access` to commands on channel_op.py (diff) | |
| signature | ||
Show an error when an unknown subcommand is given to !access (channel_access.py)
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/channel_access.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |
