Allow solve captcha with spaces (ie "1 2 3 4")

pull/195/head
J-Rios 2023-12-27 14:44:59 +01:00
rodzic a9b9c3f6d9
commit c3914b1a88
Nie znaleziono w bazie danych klucza dla tego podpisu
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -683,6 +683,11 @@ def is_captcha_num_solve(captcha_mode, msg_text, solve_num):
else:
if solve_num.lower() in msg_text.lower():
return True
# Check if the message is the valid number but with spaces
if len(msg_text) == len("1 2 3 4"):
solve_num_with_spaces = " ".join(solve_num)
if solve_num_with_spaces.lower() == msg_text.lower():
return True
return False