aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2021-02-06 13:38:39 +0200
committerGravatar ks129 <[email protected]>2021-02-06 13:38:39 +0200
commit1a9d820638acce176f73867b6b321c8c1dbfb479 (patch)
treef55d5d52886b7c78bbbea88049b95fb33e38252f
parentMerge pull request #1397 from python-discord/feat/1280/deleted-jumplink (diff)
Ignore attachment-only messages for duplicates antispam rule
-rw-r--r--bot/rules/duplicates.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/rules/duplicates.py b/bot/rules/duplicates.py
index 455764b53..23aefd3dc 100644
--- a/bot/rules/duplicates.py
+++ b/bot/rules/duplicates.py
@@ -13,6 +13,7 @@ async def apply(
if (
msg.author == last_message.author
and msg.content == last_message.content
+ and (msg.content and not msg.attachments)
)
)