diff options
| author | 2019-10-17 14:23:23 -0600 | |
|---|---|---|
| committer | 2019-10-17 14:23:23 -0600 | |
| commit | 8722e954af926e7ec6b480df9edde1249c8ab795 (patch) | |
| tree | ae02f7fdc361f8bcb9bbed1e3527a247f3b4bac2 | |
| parent | Address reviewer request (diff) | |
Bugfix - ensure .py attachment is prioritized over other non-whitelisted
| -rw-r--r-- | bot/cogs/antimalware.py | 1 |
1 files changed, 0 insertions, 1 deletions
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) |