Fixed IRC message target.

This commit is contained in:
Niels Simenon 2023-04-11 01:31:12 +02:00
parent e584389453
commit 29ce536ffd
1 changed files with 1 additions and 1 deletions

View File

@ -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') {