Fix wait error regex

There are 2 spaces separating the number of seconds.
This commit is contained in:
AchtBit 2014-01-17 00:33:43 -06:00
parent d991e6e0cb
commit 8c3e46d23b

View File

@ -547,7 +547,7 @@ QR =
# Too many frequent mistyped captchas will auto-ban you!
# On connection error, the post most likely didn't go through.
QR.cooldown.set delay: 2
else if err.textContent and m = err.textContent.match /wait\s(\d+)\ssecond/i
else if err.textContent and m = err.textContent.match /wait\s+(\d+)\s+second/i
QR.cooldown.auto = if QR.captcha.isEnabled
!!QR.captcha.captchas.length
else