From 17c79ca32639d66f9944d282ee41b3cfd653025f Mon Sep 17 00:00:00 2001 From: Andrew <62994051+Rarmash@users.noreply.github.com> Date: Sat, 15 Jun 2024 16:35:54 +0300 Subject: [PATCH] Logger fix --- gears/logger.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gears/logger.py b/gears/logger.py index 20768ba..f815ed8 100644 --- a/gears/logger.py +++ b/gears/logger.py @@ -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 @@ -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