Ignore before=None in on_message_edit, prevent other jarvis spam
This commit is contained in:
parent
0706ee9232
commit
869239dcd9
1 changed files with 1 additions and 1 deletions
|
@ -358,7 +358,7 @@ class ModlogCog(commands.Cog):
|
||||||
{"guild": after.guild.id, "setting": "modlog"}
|
{"guild": after.guild.id, "setting": "modlog"}
|
||||||
)
|
)
|
||||||
if modlog:
|
if modlog:
|
||||||
if before.content == after.content:
|
if before.content == after.content or before.content is None:
|
||||||
return
|
return
|
||||||
channel = before.guild.get_channel(modlog["value"])
|
channel = before.guild.get_channel(modlog["value"])
|
||||||
fields = [
|
fields = [
|
||||||
|
|
Loading…
Add table
Reference in a new issue