Fixed IRC message target.
This commit is contained in:
parent
e584389453
commit
29ce536ffd
|
@ -118,7 +118,7 @@ async function getGames(bot, identifier) {
|
||||||
const curatedBody = curateMessageBody(body, game, key, options);
|
const curatedBody = curateMessageBody(body, game, key, options);
|
||||||
|
|
||||||
if (config.platform === 'irc') {
|
if (config.platform === 'irc') {
|
||||||
bot.client.say(roomId || recipient, curatedBody);
|
bot.client.say(/^#/.test(roomId) ? roomId : recipient, curatedBody);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.platform === 'schat') {
|
if (config.platform === 'schat') {
|
||||||
|
|
Loading…
Reference in New Issue