core - Fix bwcli condition when checking bans

This commit is contained in:
Théophile Diot 2023-05-21 12:50:16 -04:00
parent 97723185ba
commit 78f7570e16
No known key found for this signature in database
GPG Key ID: E752C80DB72BB014
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ try:
f'❌ Redis ban list not found in the output of "bans", exiting ...\noutput: {result.output.decode()}'
)
exit(1)
elif b"1 hour" not in result.output or b"59 minutes" not in result.output:
elif b"1 hour" not in result.output and b"59 minutes" not in result.output:
print(
f"❌ Ban duration isn't 1 hour, exiting ...\noutput: {result.output.decode()}"
)