Don't stop auto-posting on connection error.
This commit is contained in:
parent
ad4bc27f47
commit
ed3dbfd988
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user