diff --git a/modules/github/__init__.py b/modules/github/__init__.py index 1e9e3d90..d7039be8 100644 --- a/modules/github/__init__.py +++ b/modules/github/__init__.py @@ -112,6 +112,10 @@ class Module(ModuleManager.BaseModule): @utils.hook("received.command.ghissue", min_args=1) def github_issue(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]) @@ -138,6 +142,10 @@ class Module(ModuleManager.BaseModule): json=True) @utils.hook("received.command.ghpull", min_args=1) def github_pull(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_pull(username, repository, number) @@ -179,6 +187,10 @@ class Module(ModuleManager.BaseModule): :usage: events [category [category ...]] :usage: branches [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