From 78a0d60fc52a5d191e8eee4cd6776ecdefd3f3f2 Mon Sep 17 00:00:00 2001 From: TKperson <50115012+TKperson@users.noreply.github.com> Date: Sat, 30 Oct 2021 16:27:30 -0700 Subject: [PATCH] Fixed webhooks contents add incorrectly error --- c-realV2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c-realV2.py b/c-realV2.py index aa7b073..fa8c075 100644 --- a/c-realV2.py +++ b/c-realV2.py @@ -1843,7 +1843,7 @@ def alreadyExisted(checkingID): elif args[0] == 'contents' or args[0] == 'content': if args[1] == 'add': - if len(args) > 1 and (0 < len(text := ' '.join(args[1:])) <= 2000): + if len(args) > 1 and (0 < len(text := ' '.join(args[2:])) <= 2000): settings['webhook_spam']['contents'].append(text) await log(ctx, f'Text added. Character length: `{str(len(text))}`.') else: