From 35bbe6197955ce90075cd9d203d1c28e5ea4f8b9 Mon Sep 17 00:00:00 2001 From: Jan <26145882+imverum@users.noreply.github.com> Date: Sun, 7 Feb 2021 16:37:03 +0100 Subject: [PATCH] fix warning message timeout --- util/karma.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/karma.js b/util/karma.js index d8ee497..03845ce 100644 --- a/util/karma.js +++ b/util/karma.js @@ -73,7 +73,7 @@ module.exports.run = () => { } else if (awards[reaction.emoji.id]) { let award = awards[reaction.emoji.id]; - let noTimeout = (timeouts[user.id] && timeouts[user.id] < Date.now()); + let noTimeout = (!timeouts[user.id] || timeouts[user.id] < Date.now()); let perms = message.channel.permissionsFor(user.id); if (!perms.has('SEND_MESSAGES') || !perms.has('ADD_REACTIONS')) { logger.warn(`${user.tag} => Ignoring reaction in #${message.channel.name}: User is missing permission`);