mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-08 00:32:19 +02:00
Merge pull request #4005 from thelounge/xpaw/fix-mode-users
Fix mode message only making last nick clickable
This commit is contained in:
commit
f1fc7a8968
|
@ -60,16 +60,16 @@ module.exports = function (irc, network) {
|
||||||
self: data.nick === irc.user.nick,
|
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)) {
|
if (targetChan.findUser(param)) {
|
||||||
users.push(param);
|
users.push(param);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (users.length > 0) {
|
if (users.length > 0) {
|
||||||
msg.users = users;
|
msg.users = users;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
targetChan.pushMessage(client, msg);
|
targetChan.pushMessage(client, msg);
|
||||||
|
|
Loading…
Reference in a new issue