Skip to content

Commit

Permalink
Fixed webhooks contents add incorrectly error
Browse files Browse the repository at this point in the history
  • Loading branch information
TKperson authored Oct 30, 2021
1 parent 2f77bcd commit 78a0d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c-realV2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 78a0d60

Please sign in to comment.