Handle RPL_INVITING

This commit is contained in:
Pavel Djundik 2020-10-02 12:55:12 +03:00
parent 6ca3bae73e
commit 09017d571d

View file

@ -25,4 +25,21 @@ module.exports = function (irc, network) {
});
chan.pushMessage(client, msg);
});
irc.on("invited", function (data) {
const chan = network.getChannel(data.channel);
if (typeof chan === "undefined") {
return;
}
const msg = new Msg({
type: Msg.Type.INVITE,
time: data.time,
from: chan.getUser(irc.user.nick),
target: chan.getUser(data.nick),
channel: data.channel,
});
chan.pushMessage(client, msg);
});
};