Fix regression: don't stop auto-posting because of a captcha error.

This commit is contained in:
Nicolas Stepien 2012-09-06 17:00:37 +02:00
parent ad95f332c2
commit 9805572fe0
2 changed files with 2 additions and 2 deletions

View File

@ -2485,7 +2485,7 @@
err = 'Connection error with sys.4chan.org.';
}
if (err) {
if (/captcha|verification/i.test(err) || err === 'Connection error with sys.4chan.org.') {
if (/captcha|verification/i.test(err.textContent) || err === 'Connection error with sys.4chan.org.') {
QR.cooldown.auto = !!$.get('captchas', []).length;
QR.cooldown.set(2);
} else {

View File

@ -1940,7 +1940,7 @@ QR =
err = 'Connection error with sys.4chan.org.'
if err
if /captcha|verification/i.test(err) or err is 'Connection error with sys.4chan.org.'
if /captcha|verification/i.test(err.textContent) or err is 'Connection error with sys.4chan.org.'
# Enable auto-post if we have some cached captchas.
QR.cooldown.auto = !!$.get('captchas', []).length
# Too many frequent mistyped captchas will auto-ban you!