Merge pull request #1394 from AchtBit/v3

Fixes wait error regex
This commit is contained in:
Mayhem 2014-01-17 00:36:16 -08:00
commit dbbf73b02f

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