diff --git a/src/modules/voicefix/cog.py b/src/modules/voicefix/cog.py index 8a14414f..9d60d18d 100644 --- a/src/modules/voicefix/cog.py +++ b/src/modules/voicefix/cog.py @@ -91,14 +91,14 @@ class VoiceFixCog(LionCog): sent = [] linkids = self.channel_links.get(message.channel.id, ()) if linkids: - if message.attachments: - files = await prepare_attachments(message.attachments) - else: - files = [] - for linkid in linkids: for channelid in self.link_channels[linkid]: if channelid != message.channel.id: + if message.attachments: + files = await prepare_attachments(message.attachments) + else: + files = [] + hook = self.hooks[channelid] avatar = message.author.avatar or message.author.default_avatar msg = await hook.send(