Merge pull request #3031 from creesch/patch-1

Invites should not automatically highlight you.
This commit is contained in:
Pavel Djundik 2019-02-05 14:24:36 +02:00 committed by GitHub
commit 1c16c329c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,14 +12,16 @@ module.exports = function(irc, network) {
chan = network.channels[0];
}
const invitedYou = data.invited === irc.user.nick;
const msg = new Msg({
type: Msg.Type.INVITE,
time: data.time,
from: chan.getUser(data.nick),
target: chan.getUser(data.invited),
channel: data.channel,
highlight: true,
invitedYou: data.invited === irc.user.nick,
highlight: invitedYou,
invitedYou: invitedYou,
});
chan.pushMessage(client, msg);
});