From 8cc11685893542f3c837264198fa820a62ed2d85 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 8 Dec 2018 09:10:44 +0000 Subject: [PATCH] Return empty string on successful github webhook handling, not True --- modules/github.py | 6 +++--- 1 file 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("")