From a7200b0e444b4aeedc739760939fa7dad7dda2ed Mon Sep 17 00:00:00 2001 From: Twentysix Date: Sat, 15 Oct 2016 19:22:41 +0200 Subject: [PATCH] [Mod] Hotfix for wrongful deletion of messages /w attachments --- cogs/mod.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cogs/mod.py b/cogs/mod.py index 117ea5d2b..fe4c21013 100644 --- a/cogs/mod.py +++ b/cogs/mod.py @@ -894,6 +894,8 @@ class Mod: msgs = self.cache[author] if len(msgs) == 3 and \ msgs[0].content == msgs[1].content == msgs[2].content: + if any([m.attachments for m in msgs]): + return False try: await self.bot.delete_message(message) return True