From a09d3e846d0cf861e8ef48402735cb4f085ccdbd Mon Sep 17 00:00:00 2001 From: ccd0 Date: Thu, 28 Sep 2017 01:56:50 -0700 Subject: [PATCH] Custom cooldown should not extend cooldown time when cooldown is inapplicable. --- src/Posting/QR.cooldown.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Posting/QR.cooldown.coffee b/src/Posting/QR.cooldown.coffee index 17e9c7eb9..6ae895d8e 100644 --- a/src/Posting/QR.cooldown.coffee +++ b/src/Posting/QR.cooldown.coffee @@ -159,9 +159,9 @@ QR.cooldown = '' seconds = Math.max seconds, QR.cooldown.delays[type + suffix] - elapsed - # If additional cooldown is enabled, add the configured seconds to the count. - if QR.cooldown.customCooldown - seconds = Math.max seconds, parseInt(Conf['customCooldown'], 10) - elapsed + # If additional cooldown is enabled, add the configured seconds to the count. + if QR.cooldown.customCooldown + seconds = Math.max seconds, parseInt(Conf['customCooldown'], 10) - elapsed nCooldowns += Object.keys(cooldowns).length