From 0df028aebbb8fcfd8f6793bd84ddcca0ebf1f16f Mon Sep 17 00:00:00 2001 From: mbaruh Date: Mon, 27 Mar 2023 18:52:37 +0300 Subject: Fix condition --- bot/exts/filtering/_filter_lists/antispam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/exts/filtering/_filter_lists/antispam.py b/bot/exts/filtering/_filter_lists/antispam.py index ba20051fc..e76f95338 100644 --- a/bot/exts/filtering/_filter_lists/antispam.py +++ b/bot/exts/filtering/_filter_lists/antispam.py @@ -162,7 +162,7 @@ class DeletionContext: add, (other_ctx.action_descriptions for other_ctx in other_contexts), ctx.action_descriptions ) # It shouldn't ever come to this, but just in case. - if descriptions_num := len(new_ctx.action_descriptions) > 20: + if (descriptions_num := len(new_ctx.action_descriptions)) > 20: new_ctx.action_descriptions = new_ctx.action_descriptions[:20] new_ctx.action_descriptions[-1] += f" (+{descriptions_num - 20} other actions)" new_ctx.related_messages = reduce( -- cgit v1.2.3