diff options
| author | 2018-11-17 22:39:14 +0000 | |
|---|---|---|
| committer | 2018-11-17 22:39:14 +0000 | |
| commit | 870c56cfbb890b8bca4c8c04c06365945398b89f (patch) | |
| tree | 98dfa4fa602eef5777b92ee7ab9d6d839028abbc /modules/github.py | |
| parent | typo in modules/github.py, 'targets.append(server, channel)' -> (diff) | |
| signature | ||
`hooks` -> `targets`, to actually respect filtered-out channels
Diffstat (limited to 'modules/github.py')
| -rw-r--r-- | modules/github.py | 4 |
1 files changed, 1 insertions, 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) |
