[Mod] Hotfix for wrongful deletion of messages /w attachments

This commit is contained in:
Twentysix 2016-10-15 19:22:41 +02:00
parent a29ed0c381
commit a7200b0e44

View File

@ -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