Propogate fix to message delete

This commit is contained in:
Zeva Rose 2022-09-17 23:57:42 +00:00 committed by Zevaryx
parent 39366648c3
commit 854689f5ce

View file

@ -450,7 +450,7 @@ class MessageEventMixin:
message = event.message
modlog = await Setting.find_one(q(guild=message.guild.id, setting="activitylog"))
ignore = await Setting.find_one(q(guild=message.guild.id, setting="log_ignore"))
if modlog and (ignore and message.channel.id not in ignore.value):
if modlog and (not ignore or (ignore and message.channel.id not in ignore.value)):
try:
content = message.content or "N/A"
except AttributeError: