From b6ad57f9656f9f1f7e40ea8a318b1670d7aebb99 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 6 Nov 2018 14:01:30 +0000 Subject: [PATCH] `github-hook` is an array --- modules/github.py | 5 +++-- 1 file 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"]