From 29ce536ffd144bd5ce3c36c65023c97ad0b7270f Mon Sep 17 00:00:00 2001 From: Niels Simenon Date: Tue, 11 Apr 2023 01:31:12 +0200 Subject: [PATCH] Fixed IRC message target. --- src/play.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/play.js b/src/play.js index c76f816..2dd1252 100755 --- a/src/play.js +++ b/src/play.js @@ -118,7 +118,7 @@ async function getGames(bot, identifier) { const curatedBody = curateMessageBody(body, game, key, options); if (config.platform === 'irc') { - bot.client.say(roomId || recipient, curatedBody); + bot.client.say(/^#/.test(roomId) ? roomId : recipient, curatedBody); } if (config.platform === 'schat') {