hooks
-> targets
, to actually respect filtered-out channels
This commit is contained in:
parent
a7e2eacf1d
commit
870c56cfbb
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue