From 52af534c282fd7b9431b20d107c53211583f5a7e Mon Sep 17 00:00:00 2001 From: "green." <41323182+gweeeen@users.noreply.github.com> Date: Sat, 29 Jun 2024 23:25:02 +0200 Subject: [PATCH] fix server restrictions not working --- cogs/bridge.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cogs/bridge.py b/cogs/bridge.py index b7b6f018..e5fc2e14 100644 --- a/cogs/bridge.py +++ b/cogs/bridge.py @@ -897,7 +897,11 @@ async def send(self, room: str, message: discord.Message or revolt.Message, try: bans = self.bot.db['blocked'][str(guild)] - if message.author.id in bans and not sameguild: + if source == 'discord': + guildban = message.guild.id in bans + else: + guildban = message.server.id in bans + if (message.author.id in bans or guildban) and not sameguild: continue except: pass