mirror of
https://github.com/thelounge/thelounge.git
synced 2024-05-04 23:43:20 +02:00
Handle RPL_INVITING
This commit is contained in:
parent
6ca3bae73e
commit
09017d571d
|
@ -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);
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue