From c3914b1a88e6702d85ab51635b81e684cdc6a997 Mon Sep 17 00:00:00 2001 From: J-Rios Date: Wed, 27 Dec 2023 14:44:59 +0100 Subject: [PATCH] Allow solve captcha with spaces (ie "1 2 3 4") --- sources/join_captcha_bot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sources/join_captcha_bot.py b/sources/join_captcha_bot.py index 4c1adc1..cbbdca8 100644 --- a/sources/join_captcha_bot.py +++ b/sources/join_captcha_bot.py @@ -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