This commit is contained in:
Nicolas Stepien 2012-09-18 18:42:19 +02:00
parent 9d6232ec53
commit b6f3466624
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -1956,7 +1956,7 @@ QR =
if err
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 = if qr.captchaIsEnabled then !!$.get('captchas', []).length else true
QR.cooldown.auto = !!$.get('captchas', []).length
# Too many frequent mistyped captchas will auto-ban you!
# On connection error, the post most likely didn't go through.
QR.cooldown.set 2