Skip to content

Commit

Permalink
logs.py: Don't stop checking for punishments even if the member is su…
Browse files Browse the repository at this point in the history
…pposedly new
  • Loading branch information
FrozenChen authored Nov 11, 2024
1 parent d3cd808 commit 022359c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cogs/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 022359c

Please sign in to comment.