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])