From 022359cd20726cb388b6f47dd30e4824bec9fa87 Mon Sep 17 00:00:00 2001 From: FrozenChen Date: Sun, 10 Nov 2024 21:14:15 -0300 Subject: [PATCH] logs.py: Don't stop checking for punishments even if the member is supposedly new --- cogs/logs.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/cogs/logs.py b/cogs/logs.py index 491d3745..4288502c 100644 --- a/cogs/logs.py +++ b/cogs/logs.py @@ -68,13 +68,11 @@ async def on_member_join(self, member: discord.Member): embed.description = softban.reason await self.bot.channels['server-logs'].send(msg, embed=embed) return - # If it's their first time joining just send the welcome message, no need to check for punishments if not member.flags.did_rejoin: if not self.bot.configuration.auto_probation: await send_dm_message(member, self.welcome_msg.format(member.name, member.guild.name, self.bot.channels['welcome-and-rules'].mention)) await self.bot.channels['server-logs'].send(msg) - return roles = [] async for r in self.restrictions.get_restrictions_by_user(member.id): restriction = Restriction(r[2])