Propogate fix to message delete

This commit is contained in:
Zeva Rose 2022-09-17 23:57:42 +00:00
parent eaa19de050
commit c1806dffcf

View file

@ -370,7 +370,7 @@ class MessageEventMixin:
message = event.message message = event.message
modlog = await Setting.find_one(q(guild=message.guild.id, setting="activitylog")) 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")) 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: try:
content = message.content or "N/A" content = message.content or "N/A"
except AttributeError: except AttributeError: