Added recipient to IRC message.
This commit is contained in:
@@ -51,6 +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,
|
||||||
body,
|
body,
|
||||||
type: 'message',
|
type: 'message',
|
||||||
}, bot, games));
|
}, bot, games));
|
||||||
|
|||||||
Reference in New Issue
Block a user