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({
|
||||
from,
|
||||
to,
|
||||
recipient: /^#/.test(to) ? to : null,
|
||||
recipient: /^#/.test(to) ? null : to,
|
||||
body,
|
||||
type: 'message',
|
||||
}, bot, games));
|
||||
|
|
Loading…
Reference in New Issue