Skip to content

Commit

Permalink
Logger fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rarmash committed Jun 15, 2024
1 parent b8d7c30 commit 17c79ca
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions gears/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ async def on_message_delete(self, ctx):
return

# Check if the channel, user, and category are allowed
if not self.is_channel_allowed(ctx.channel.id, server_data) or \
not self.is_user_allowed(ctx.author.id, server_data) or \
not self.is_category_allowed(ctx.channel.category_id, server_data):
if not is_channel_allowed(ctx.channel.id, server_data) or \
not is_user_allowed(ctx.author.id, server_data) or \
not is_category_allowed(ctx.channel.category_id, server_data):
return

# Get the log channel
Expand Down Expand Up @@ -84,9 +84,9 @@ async def on_message_edit(self, before, after):
return

# Check if the channel, user, and category are allowed, and the content is changed
if not self.is_channel_allowed(before.channel.id, server_data) or \
not self.is_user_allowed(before.author.id, server_data) or \
not self.is_category_allowed(before.channel.category_id, server_data) or \
if not is_channel_allowed(before.channel.id, server_data) or \
not is_user_allowed(before.author.id, server_data) or \
not is_category_allowed(before.channel.category_id, server_data) or \
before.content == after.content:
return

Expand Down

0 comments on commit 17c79ca

Please sign in to comment.