Invites should not automatically highlight you.
This commit is contained in:
parent
7840b56690
commit
39071aff50
@ -12,14 +12,16 @@ module.exports = function(irc, network) {
|
|||||||
chan = network.channels[0];
|
chan = network.channels[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const invitedYou = data.invited === irc.user.nick;
|
||||||
|
|
||||||
const msg = new Msg({
|
const msg = new Msg({
|
||||||
type: Msg.Type.INVITE,
|
type: Msg.Type.INVITE,
|
||||||
time: data.time,
|
time: data.time,
|
||||||
from: chan.getUser(data.nick),
|
from: chan.getUser(data.nick),
|
||||||
target: chan.getUser(data.invited),
|
target: chan.getUser(data.invited),
|
||||||
channel: data.channel,
|
channel: data.channel,
|
||||||
highlight: true,
|
highlight: invitedYou,
|
||||||
invitedYou: data.invited === irc.user.nick,
|
invitedYou: invitedYou,
|
||||||
});
|
});
|
||||||
chan.pushMessage(client, msg);
|
chan.pushMessage(client, msg);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user