Skip to content

Commit

Permalink
I miss having Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
tweirtx committed Apr 1, 2024
1 parent 444e072 commit 8a43dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dozer/cogs/moderation.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ async def on_message(self, message: discord.Message):
custom_log_config = await CustomJoinLeaveMessages.get_by(guild_id=message.guild.id)

await message.author.add_roles(message.guild.get_role(role_id))
if custom_log_config[0].send_on_verify:
if len(custom_log_config) > 0 and custom_log_config[0].send_on_verify:
await send_log(member=message.author)

@Cog.listener('on_message_edit')
Expand Down

0 comments on commit 8a43dd4

Please sign in to comment.