From 21feb37d214b4ad38bace82346251661550232a8 Mon Sep 17 00:00:00 2001 From: Niels Simenon Date: Tue, 11 Apr 2023 00:47:45 +0200 Subject: [PATCH] Fixed logical typo. --- src/games/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/games/chat.js b/src/games/chat.js index 0cf5bad..dd6e92e 100644 --- a/src/games/chat.js +++ b/src/games/chat.js @@ -281,7 +281,7 @@ async function onCommand(args, context, isConversation) { } function onMessage(message, context) { - const isConversation = message.recipient === config.user.username && !message.type === 'whisper' && !context.containsCommand; + const isConversation = message.recipient === config.user.username && message.type !== 'whisper' && !context.containsCommand; if (promptRegex.test(message.body) || isConversation) { onCommand([message.body.replace(promptRegex, '').trim()], context, isConversation);