Fix breaking bug in event logging on message edits
This commit is contained in:
parent
10615c6c58
commit
39366648c3
1 changed files with 1 additions and 1 deletions
|
@ -394,7 +394,7 @@ class MessageEventMixin:
|
|||
if not after.author.bot:
|
||||
modlog = await Setting.find_one(q(guild=after.guild.id, setting="activitylog"))
|
||||
ignore = await Setting.find_one(q(guild=after.guild.id, setting="log_ignore"))
|
||||
if modlog and (ignore and after.channel.id not in ignore.value):
|
||||
if modlog and (not ignore or (ignore and after.channel.id not in ignore.value)):
|
||||
if not before or before.content == after.content or before.content is None:
|
||||
return
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue