Increase maxDelay instead of QR.cooldown.maxDelay.
This commit is contained in:
parent
5c9014cfd2
commit
7568f0c64e
@ -105,15 +105,13 @@ QR.cooldown =
|
|||||||
seconds = Math.max seconds, cooldown.delay - elapsed
|
seconds = Math.max seconds, cooldown.delay - elapsed
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Increase the max delay if additional cooldown is enabled
|
|
||||||
if QR.cooldown.addCooldown
|
|
||||||
QR.cooldown.maxDelay = QR.cooldown.maxDelay + parseInt(Conf['additionalCooldown'])
|
|
||||||
|
|
||||||
# Clean up expired cooldowns
|
# Clean up expired cooldowns
|
||||||
maxDelay = if cooldown.threadID isnt cooldown.postID
|
maxDelay = if cooldown.threadID isnt cooldown.postID
|
||||||
QR.cooldown.maxDelay
|
QR.cooldown.maxDelay
|
||||||
else
|
else
|
||||||
QR.cooldown.delays[if scope is 'global' then 'thread_global' else 'thread']
|
QR.cooldown.delays[if scope is 'global' then 'thread_global' else 'thread']
|
||||||
|
if QR.cooldown.addCooldown
|
||||||
|
maxDelay += parseInt(Conf['additionalCooldown'])
|
||||||
if maxDelay <= elapsed
|
if maxDelay <= elapsed
|
||||||
delete QR.cooldown[scope][start]
|
delete QR.cooldown[scope][start]
|
||||||
save = true
|
save = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user