Don't stop auto-posting on connection error.

This commit is contained in:
Nicolas Stepien 2012-09-23 01:06:27 +02:00
parent ad4bc27f47
commit ed3dbfd988
2 changed files with 6 additions and 2 deletions

View File

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

View File

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