From 870c56cfbb890b8bca4c8c04c06365945398b89f Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 17 Nov 2018 22:39:14 +0000 Subject: [PATCH] `hooks` -> `targets`, to actually respect filtered-out channels --- modules/github.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/github.py b/modules/github.py index 9f616b4d..4368d476 100644 --- a/modules/github.py +++ b/modules/github.py @@ -81,11 +81,9 @@ class Module(ModuleManager.BaseModule): outputs = self.release(event, full_name, data) if outputs: - for server_id, channel_name, _ in hooks: + for server, channel in targets: for output in outputs: output = "(%s) %s" % (full_name, output) - server = self.bot.get_server(server_id) - channel = server.channels.get(channel_name) trigger = self._make_trigger(channel, server, output) self.bot.trigger(trigger)