aboutsummaryrefslogtreecommitdiff
path: root/modules/github.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-11-06 14:01:30 +0000
committerGravatar jesopo2018-11-06 14:01:30 +0000
commitb6ad57f9656f9f1f7e40ea8a318b1670d7aebb99 (patch)
tree69c85f049e2521640f27292bff7fb3a896396716 /modules/github.py
parent'event["headers"]' -> 'event["headers"]["X-GitHub-Event"]' (diff)
signature
`github-hook` is an array
Diffstat (limited to 'modules/github.py')
-rw-r--r--modules/github.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/github.py b/modules/github.py
index c7ed73d7..48d29159 100644
--- a/modules/github.py
+++ b/modules/github.py
@@ -18,8 +18,9 @@ class Module(ModuleManager.BaseModule):
full_name = data["repository"]["full_name"]
hooks = self.bot.database.channel_settings.find_by_setting(
"github-hook")
- for i, (server_id, channel_name, value) in list(enumerate(hooks))[::-1]:
- if not value == full_name:
+ for i, (server_id, channel_name, values) in list(
+ enumerate(hooks))[::-1]:
+ if not full_name in values:
hooks.pop(i)
github_event = event["headers"]["X-GitHub-Event"]