From f33b6b4ac7294e63c636a7558f59fe84e8388073 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 18 Aug 2024 23:25:28 +0100 Subject: [PATCH] Fix retrieving multiple certificate fingerprints on InspIRCd v4. --- src/commands/handlers/user.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/handlers/user.js b/src/commands/handlers/user.js index 33eaf50..28663a7 100644 --- a/src/commands/handlers/user.js +++ b/src/commands/handlers/user.js @@ -272,7 +272,8 @@ const handlers = { RPL_WHOISCERTFP: function(command, handler) { const cache_key = command.params[1].toLowerCase(); const cache = handler.cache('whois.' + cache_key); - cache.certfp = command.params[command.params.length - 1]; + cache.certfp = cache.certfp || []; + cache.certfp.push(command.params[command.params.length - 1]); }, RPL_WHOISACCOUNT: function(command, handler) {