From 046e98565e83871e4d3167f8288fdc2b8ac46b74 Mon Sep 17 00:00:00 2001 From: zephyrkul Date: Sat, 6 Oct 2018 17:19:56 -0600 Subject: [PATCH] [Cleanup] use message_filter() over check() param (#2180) Cleanup's helper method to collect messages to delete was incorrectly filtering by check rather than message_filter, causing delete_after to be ignored. --- redbot/cogs/cleanup/cleanup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/cogs/cleanup/cleanup.py b/redbot/cogs/cleanup/cleanup.py index f07039df6..b685af276 100644 --- a/redbot/cogs/cleanup/cleanup.py +++ b/redbot/cogs/cleanup/cleanup.py @@ -94,7 +94,7 @@ class Cleanup(commands.Cog): ): if message.created_at < two_weeks_ago: break - if check(message): + if message_filter(message): collected.append(message) if number and number <= len(collected): break