From 380eda18d28437f031d7a949db688fd961f5e50d Mon Sep 17 00:00:00 2001 From: Mayhem Date: Fri, 20 Sep 2013 11:03:18 +0200 Subject: [PATCH] Don't show the "running low on captchas" when we actually have just enough. --- src/Posting/QR.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 306907940..e7515d60c 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -1111,9 +1111,9 @@ QR = postID } - # Enable auto-posting if we have stuff to post, disable it otherwise. - postsCount = QR.posts.length - QR.cooldown.auto = postsCount > 1 and isReply + # Enable auto-posting if we have stuff left to post, disable it otherwise. + postsCount = QR.posts.length - 1 + QR.cooldown.auto = postsCount and isReply if QR.cooldown.auto and QR.captcha.isEnabled and (captchasCount = QR.captcha.captchas.length) < 3 and captchasCount < postsCount notif = new Notification 'Quick reply warning', body: "You are running low on cached captchas. Cache count: #{captchasCount}."