aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/github/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/github/__init__.py b/modules/github/__init__.py
index 2df058cc..55280ab3 100644
--- a/modules/github/__init__.py
+++ b/modules/github/__init__.py
@@ -306,7 +306,10 @@ class Module(ModuleManager.BaseModule):
targets.append([server, channel])
if not targets:
- return "" if repo_hooked else None
+ if not repo_hooked:
+ return None
+ else:
+ return {"state": "success", "deliveries": 0}
outputs = None
if github_event == "push":
@@ -353,7 +356,7 @@ class Module(ModuleManager.BaseModule):
hide_prefix=channel.get_setting(
"github-hide-prefix", False))
- return ""
+ return {"state": "success", "deliveries": len(targets)}
def _prevent_highlight(self, channel, s):
for user in channel.users: