Skip to content

Commit 17c79ca

Browse files
committed
Logger fix
1 parent b8d7c30 commit 17c79ca

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

gears/logger.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ async def on_message_delete(self, ctx):
3333
return
3434

3535
# Check if the channel, user, and category are allowed
36-
if not self.is_channel_allowed(ctx.channel.id, server_data) or \
37-
not self.is_user_allowed(ctx.author.id, server_data) or \
38-
not self.is_category_allowed(ctx.channel.category_id, server_data):
36+
if not is_channel_allowed(ctx.channel.id, server_data) or \
37+
not is_user_allowed(ctx.author.id, server_data) or \
38+
not is_category_allowed(ctx.channel.category_id, server_data):
3939
return
4040

4141
# Get the log channel
@@ -84,9 +84,9 @@ async def on_message_edit(self, before, after):
8484
return
8585

8686
# Check if the channel, user, and category are allowed, and the content is changed
87-
if not self.is_channel_allowed(before.channel.id, server_data) or \
88-
not self.is_user_allowed(before.author.id, server_data) or \
89-
not self.is_category_allowed(before.channel.category_id, server_data) or \
87+
if not is_channel_allowed(before.channel.id, server_data) or \
88+
not is_user_allowed(before.author.id, server_data) or \
89+
not is_category_allowed(before.channel.category_id, server_data) or \
9090
before.content == after.content:
9191
return
9292

0 commit comments

Comments
 (0)