diff --git a/src/irc.js b/src/irc.js index 694e8fe..85b73d2 100755 --- a/src/irc.js +++ b/src/irc.js @@ -51,7 +51,7 @@ async function init() { client.addListener('message', (from, to, body) => onMessage({ from, to, - recipient: /^#/.test(to) ? to : null, + recipient: /^#/.test(to) ? null : to, body, type: 'message', }, bot, games));