Show an error when an unknown subcommand is given to !access (channel_access.py)
This commit is contained in:
parent
10b2ace653
commit
f9446a3663
1 changed files with 2 additions and 0 deletions
|
@ -64,3 +64,5 @@ class Module(ModuleManager.BaseModule):
|
||||||
event["target"].del_user_setting(target.get_id(), "access")
|
event["target"].del_user_setting(target.get_id(), "access")
|
||||||
event["stdout"].write("Removed permission from %s: %s" % (
|
event["stdout"].write("Removed permission from %s: %s" % (
|
||||||
target.nickname, " ".join(event["args_split"][2:])))
|
target.nickname, " ".join(event["args_split"][2:])))
|
||||||
|
else:
|
||||||
|
event["stderr"].write("Unknown command '%s'" % subcommand)
|
||||||
|
|
Loading…
Reference in a new issue