diff options
| author | 2019-01-18 14:21:53 +0000 | |
|---|---|---|
| committer | 2019-01-18 14:21:53 +0000 | |
| commit | 1753329aaf7ad14a8706b8d66c2b8dff9a51b6f8 (patch) | |
| tree | 6e04c6d5ff3ed7fd25f10bc168c54a791a23b9ee /modules/github | |
| parent | Clarify wording of what can be in the list of shown events (github) (diff) | |
| signature | ||
Show an error when a user specifies an unknown subcommand to !ghwebhook (github)
Diffstat (limited to 'modules/github')
| -rw-r--r-- | modules/github/module.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/github/module.py b/modules/github/module.py index 696f7810..5fed25dd 100644 --- a/modules/github/module.py +++ b/modules/github/module.py @@ -193,6 +193,9 @@ class Module(ModuleManager.BaseModule): all_hooks[existing_hook]["events"] = new_events event["target"].set_setting("github-hooks", all_hooks) 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") def webhook(self, event): |
