Ignore before=None in on_message_edit, prevent other jarvis spam

This commit is contained in:
Zeva Rose 2021-07-11 19:33:54 -06:00
parent 0706ee9232
commit 869239dcd9

View file

@ -358,7 +358,7 @@ class ModlogCog(commands.Cog):
{"guild": after.guild.id, "setting": "modlog"}
)
if modlog:
if before.content == after.content:
if before.content == after.content or before.content is None:
return
channel = before.guild.get_channel(modlog["value"])
fields = [