From e5588d7c83dd2bf77b7abdaa3b48cca00e65a31d Mon Sep 17 00:00:00 2001 From: Dragory Date: Sat, 21 Apr 2018 16:44:03 +0300 Subject: [PATCH] Use minutes as the default unit for timed close Before, doing !close 30 would close the thread in 30 seconds. Now it will be closed in 30 minutes. --- src/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.js b/src/utils.js index 8ab6e8a..91d7339 100644 --- a/src/utils.js +++ b/src/utils.js @@ -222,8 +222,8 @@ function convertDelayStringToMS(str) { while (str !== '' && (match = str.match(regex)) !== null) { if (match[2] === 'd') ms += match[1] * 1000 * 60 * 60 * 24; else if (match[2] === 'h') ms += match[1] * 1000 * 60 * 60; - else if (match[2] === 'm') ms += match[1] * 1000 * 60; - else if (match[2] === 's' || ! match[2]) ms += match[1] * 1000; + else if (match[2] === 's') ms += match[1] * 1000; + else if (match[2] === 'm' || ! match[2]) ms += match[1] * 1000 * 60; str = str.slice(match[0].length); }