From 813b49d7b14c8770d21cd757a64dcbd5444a6bf9 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Mon, 30 Dec 2019 12:10:21 +0200 Subject: [PATCH] Make nicks in sets mode clickable --- src/plugins/irc-events/mode.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/plugins/irc-events/mode.js b/src/plugins/irc-events/mode.js index a3c927a0..91eb8589 100644 --- a/src/plugins/irc-events/mode.js +++ b/src/plugins/irc-events/mode.js @@ -59,6 +59,19 @@ module.exports = function(irc, network) { text: `${data.raw_modes} ${data.raw_params.join(" ")}`, self: data.nick === irc.user.nick, }); + + for (const param of data.raw_params) { + const users = []; + + if (targetChan.findUser(param)) { + users.push(param); + } + + if (users.length > 0) { + msg.users = users; + } + } + targetChan.pushMessage(client, msg); let usersUpdated;