diff options
author | 2023-03-27 18:52:37 +0300 | |
---|---|---|
committer | 2023-03-27 18:52:37 +0300 | |
commit | 0df028aebbb8fcfd8f6793bd84ddcca0ebf1f16f (patch) | |
tree | 67f4e39c2dd5c037d75bb3ad0f5abc6a2aa26c96 | |
parent | Address typehint issues and IDE complaints (diff) |
Fix condition
-rw-r--r-- | bot/exts/filtering/_filter_lists/antispam.py | 2 |
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( |