diff --git a/cogs/mod.py b/cogs/mod.py index 9d90fe8dc..8fa45d693 100644 --- a/cogs/mod.py +++ b/cogs/mod.py @@ -1229,12 +1229,12 @@ class Mod: if server.id not in self.settings: return False if self.settings[server.id]["delete_repeats"]: + if not message.content: + return False self.cache[author].append(message) 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