Merge pull request #4005 from thelounge/xpaw/fix-mode-users

Fix mode message only making last nick clickable
This commit is contained in:
Pavel Djundik 2020-07-29 16:54:58 +03:00 committed by GitHub
commit f1fc7a8968
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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