aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-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"]