aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mbaruh <[email protected]>2023-03-27 18:52:37 +0300
committerGravatar mbaruh <[email protected]>2023-03-27 18:52:37 +0300
commit0df028aebbb8fcfd8f6793bd84ddcca0ebf1f16f (patch)
tree67f4e39c2dd5c037d75bb3ad0f5abc6a2aa26c96
parentAddress typehint issues and IDE complaints (diff)
Fix condition
-rw-r--r--bot/exts/filtering/_filter_lists/antispam.py2
1 files changed, 1 insertions, 1 deletions
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(