Don't show the "running low on captchas" when we actually have just enough.
This commit is contained in:
parent
47347d95f5
commit
380eda18d2
@ -1111,9 +1111,9 @@ QR =
|
|||||||
postID
|
postID
|
||||||
}
|
}
|
||||||
|
|
||||||
# Enable auto-posting if we have stuff to post, disable it otherwise.
|
# Enable auto-posting if we have stuff left to post, disable it otherwise.
|
||||||
postsCount = QR.posts.length
|
postsCount = QR.posts.length - 1
|
||||||
QR.cooldown.auto = postsCount > 1 and isReply
|
QR.cooldown.auto = postsCount and isReply
|
||||||
if QR.cooldown.auto and QR.captcha.isEnabled and (captchasCount = QR.captcha.captchas.length) < 3 and captchasCount < postsCount
|
if QR.cooldown.auto and QR.captcha.isEnabled and (captchasCount = QR.captcha.captchas.length) < 3 and captchasCount < postsCount
|
||||||
notif = new Notification 'Quick reply warning',
|
notif = new Notification 'Quick reply warning',
|
||||||
body: "You are running low on cached captchas. Cache count: #{captchasCount}."
|
body: "You are running low on cached captchas. Cache count: #{captchasCount}."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user