diff --git a/src/Menu/DeleteLink.coffee b/src/Menu/DeleteLink.coffee index c2507152e..49138116b 100755 --- a/src/Menu/DeleteLink.coffee +++ b/src/Menu/DeleteLink.coffee @@ -95,7 +95,7 @@ DeleteLink = else if msg = resDoc.getElementById 'errmsg' # error! new Notice 'warning', msg.textContent, 20 $.on link, 'click', DeleteLink.toggle if post.fullID is DeleteLink.post.fullID - if /\bwait\b/i.test msg.textContent + if Conf['Quick Reply'] and Conf['Cooldown'] and /\bwait\b/i.test(msg.textContent) DeleteLink.cooldown.start post, 5 DeleteLink.auto[+fileOnly][post.fullID] = true DeleteLink.nodes.links[+fileOnly].textContent = DeleteLink.linkText fileOnly diff --git a/src/Posting/QR.cooldown.coffee b/src/Posting/QR.cooldown.coffee index 26f7e7f10..8fae874d3 100644 --- a/src/Posting/QR.cooldown.coffee +++ b/src/Posting/QR.cooldown.coffee @@ -70,6 +70,7 @@ QR.cooldown = QR.cooldown.save [post.board.ID] secondsDeletion: (post) -> + return 0 unless Conf['Quick Reply'] and Conf['Cooldown'] cooldowns = QR.cooldown.data[post.board.ID] or {} for start, cooldown of cooldowns if !cooldown.delay? and cooldown.threadID is post.thread.ID and cooldown.postID is post.ID