Fixed reversed IRC recipient logic.
This commit is contained in:
parent
ba8e39f857
commit
e584389453
|
@ -51,7 +51,7 @@ async function init() {
|
||||||
client.addListener('message', (from, to, body) => onMessage({
|
client.addListener('message', (from, to, body) => onMessage({
|
||||||
from,
|
from,
|
||||||
to,
|
to,
|
||||||
recipient: /^#/.test(to) ? to : null,
|
recipient: /^#/.test(to) ? null : to,
|
||||||
body,
|
body,
|
||||||
type: 'message',
|
type: 'message',
|
||||||
}, bot, games));
|
}, bot, games));
|
||||||
|
|
Loading…
Reference in New Issue