From 8722e954af926e7ec6b480df9edde1249c8ab795 Mon Sep 17 00:00:00 2001 From: bendiller Date: Thu, 17 Oct 2019 14:23:23 -0600 Subject: Bugfix - ensure .py attachment is prioritized over other non-whitelisted --- bot/cogs/antimalware.py | 1 - 1 file changed, 1 deletion(-) diff --git a/bot/cogs/antimalware.py b/bot/cogs/antimalware.py index b8c12accb..ababd6f18 100644 --- a/bot/cogs/antimalware.py +++ b/bot/cogs/antimalware.py @@ -25,7 +25,6 @@ class AntiMalware(Cog): break # Other detections irrelevant because we prioritize the .py message. if not attachment.filename.lower().endswith(tuple(AntiMalwareConfig.whitelist)): rejected_attachments = True - break if detected_pyfile or rejected_attachments: # Send a message to the user indicating the problem (with special treatment for .py) -- cgit v1.2.3