Fix autoposting stopping on incorrect captcha.

This commit is contained in:
Nicolas Stepien 2012-02-16 14:57:12 +01:00
parent c2a2a7c5bf
commit 3d8f62abd0
2 changed files with 2 additions and 2 deletions

View File

@ -1834,7 +1834,7 @@
err = b.firstChild.textContent;
}
if (err) {
if (err === 'You seem to have mistyped the verification.' || err === 'Connection error with sys.4chan.org.') {
if (/captcha|verification/i.test(err) || err === 'Connection error with sys.4chan.org.') {
qr.cooldown.auto = !!$.get('captchas', []).length;
qr.cooldown.set(2);
} else {

View File

@ -1404,7 +1404,7 @@ qr =
err = b.firstChild.textContent
if err
if err is 'You seem to have mistyped the verification.' or err is 'Connection error with sys.4chan.org.'
if /captcha|verification/i.test(err) 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!