Fix mode message only making last nick clickable

This commit is contained in:
Pavel Djundik 2020-07-29 10:29:51 +03:00
parent 7d6f98d974
commit 40954c9a3a

View File

@ -60,17 +60,17 @@ module.exports = function (irc, network) {
self: data.nick === irc.user.nick,
});
for (const param of data.raw_params) {
const users = [];
for (const param of data.raw_params) {
if (targetChan.findUser(param)) {
users.push(param);
}
}
if (users.length > 0) {
msg.users = users;
}
}
targetChan.pushMessage(client, msg);