Skip to content

Commit

Permalink
fix server restrictions not working
Browse files Browse the repository at this point in the history
  • Loading branch information
greeeen-dev committed Jun 29, 2024
1 parent 32b4f2f commit 52af534
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cogs/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 52af534

Please sign in to comment.