diff options
| author | 2018-12-08 09:10:44 +0000 | |
|---|---|---|
| committer | 2018-12-08 09:10:44 +0000 | |
| commit | 8cc11685893542f3c837264198fa820a62ed2d85 (patch) | |
| tree | 3dbdd59846efc247409dcf80480687fc6372d3b4 /modules | |
| parent | Switch to using a case insensitive dictionary for headers instead of doing (diff) | |
| signature | ||
Return empty string on successful github webhook handling, not True
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/github.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/github.py b/modules/github.py index 92a0c268..515b4180 100644 --- a/modules/github.py +++ b/modules/github.py @@ -43,7 +43,7 @@ class Module(ModuleManager.BaseModule): github_event = event["headers"]["X-GitHub-Event"] if github_event == "ping": - return True + return "" full_name = data["repository"]["full_name"] hooks = self.bot.database.channel_settings.find_by_setting( @@ -64,7 +64,7 @@ class Module(ModuleManager.BaseModule): targets.append([server, channel]) if not targets: - return True if repo_hooked else None + return "" if repo_hooked else None outputs = None if github_event == "push": @@ -97,7 +97,7 @@ class Module(ModuleManager.BaseModule): hide_prefix=channel.get_setting( "github-hide-prefix", False)) - return True + return "" def _change_count(self, n, symbol, color): return utils.irc.color("%s%d" % (symbol, n), color)+utils.irc.bold("") |
