diff options
| author | 2019-02-27 14:55:28 +0000 | |
|---|---|---|
| committer | 2019-02-27 14:55:28 +0000 | |
| commit | 0ed6d05b031a0c8681cf8686586b6fe14d1433bb (patch) | |
| tree | 8f7e0d2106375fa90b027e065fb87aee9d48c7c4 /modules/github/__init__.py | |
| parent | Remove additional ')' (copypaste fail) (diff) | |
| signature | ||
check on github-hide-prefix was put in the wrong function
Diffstat (limited to 'modules/github/__init__.py')
| -rw-r--r-- | modules/github/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/github/__init__.py b/modules/github/__init__.py index 446d4258..1e9e3d90 100644 --- a/modules/github/__init__.py +++ b/modules/github/__init__.py @@ -150,6 +150,10 @@ class Module(ModuleManager.BaseModule): @utils.hook("received.command.gh", alias_of="github") @utils.hook("received.command.github", min_args=1) def github(self, event): + if event["target"].get_setting("github-hide-prefix", False): + event["stdout"].hide_prefix() + event["stderr"].hide_prefix() + username, repository, number = self._parse_ref( event["target"], event["args_split"][0]) page = self._gh_get_issue(username, repository, number) @@ -175,10 +179,6 @@ class Module(ModuleManager.BaseModule): :usage: events <hook> [category [category ...]] :usage: branches <hook> [branch [branch ...]] """ - if event["target"].get_setting("github-hide-prefix", False): - event["stdout"].hide_prefix() - event["stderr"].hide_prefix() - all_hooks = event["target"].get_setting("github-hooks", {}) hook_name = None existing_hook = None |
