Show an error when a user specifies an unknown subcommand to !ghwebhook (github)
This commit is contained in:
parent
3d2c11991e
commit
1753329aaf
1 changed files with 3 additions and 0 deletions
|
@ -193,6 +193,9 @@ class Module(ModuleManager.BaseModule):
|
||||||
all_hooks[existing_hook]["events"] = new_events
|
all_hooks[existing_hook]["events"] = new_events
|
||||||
event["target"].set_setting("github-hooks", all_hooks)
|
event["target"].set_setting("github-hooks", all_hooks)
|
||||||
event["stdout"].write("Updated events for hook %s" % hook)
|
event["stdout"].write("Updated events for hook %s" % hook)
|
||||||
|
else:
|
||||||
|
event["stderr"].write("Unknown command '%s'" %
|
||||||
|
event["args_split"][0])
|
||||||
|
|
||||||
@utils.hook("api.post.github")
|
@utils.hook("api.post.github")
|
||||||
def webhook(self, event):
|
def webhook(self, event):
|
||||||
|
|
Loading…
Reference in a new issue