Skip to content

Commit 4ed9d28

Browse files
authored
Fix retrieving multiple certificate fingerprints on InspIRCd v4. (#379)
* Fix retrieving multiple certificate fingerprints on InspIRCd v4. * Update to match my suggestion after review.
1 parent ba10140 commit 4ed9d28

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/commands/handlers/user.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,10 @@ const handlers = {
272272
RPL_WHOISCERTFP: function(command, handler) {
273273
const cache_key = command.params[1].toLowerCase();
274274
const cache = handler.cache('whois.' + cache_key);
275-
cache.certfp = command.params[command.params.length - 1];
275+
const certfp = command.params[command.params.length - 1];
276+
cache.certfp = cache.certfp || certfp;
277+
cache.certfps = cache.certfps || [];
278+
cache.certfps.push(certfp);
276279
},
277280

278281
RPL_WHOISACCOUNT: function(command, handler) {

0 commit comments

Comments
 (0)