Skip to content

Commit

Permalink
Fixed pfp_urls adding bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TKperson authored Oct 25, 2021
1 parent 3faceca commit 2f77bcd
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 @@ -1813,7 +1813,7 @@ def alreadyExisted(checkingID):
if len(args) > 1 and args[2].lower() == 'none':
settings['webhook_spam']['pfp_urls'].append(None)
await log(ctx, f'No pfp item has been added')
elif len(args) > 1 and (text := ' '.join(args[1:]).startswith(('https://', 'http://'))):
elif len(args) > 1 and (text := args[2].startswith(('https://', 'http://'))):
settings['webhook_spam']['pfp_urls'].append(text)
await log(ctx, f'URL added.')
else:
Expand Down

0 comments on commit 2f77bcd

Please sign in to comment.