From 73117e76147b1dab28106b6c037e957cde972753 Mon Sep 17 00:00:00 2001 From: Niels Simenon Date: Tue, 11 Apr 2023 00:46:40 +0200 Subject: [PATCH] Changed conversation determination in chat. --- 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 7581653..0cf5bad 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 && !context.room && !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);