Fix breaking bug in event logging on message edits
This commit is contained in:
parent
f50ba86c7b
commit
eaa19de050
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ class MessageEventMixin:
|
||||||
if not after.author.bot:
|
if not after.author.bot:
|
||||||
modlog = await Setting.find_one(q(guild=after.guild.id, setting="activitylog"))
|
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"))
|
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:
|
if not before or before.content == after.content or before.content is None:
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Reference in a new issue