mirror of
https://github.com/thelounge/thelounge
synced 2025-02-16 21:28:23 +00:00
Fix mode message only making last nick clickable
This commit is contained in:
parent
7d6f98d974
commit
40954c9a3a
1 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue