Skip to content

Commit

Permalink
Fix retrieving multiple certificate fingerprints on InspIRCd v4. (#379)
Browse files Browse the repository at this point in the history
* Fix retrieving multiple certificate fingerprints on InspIRCd v4.

* Update to match my suggestion after review.
  • Loading branch information
SadieCat authored Aug 27, 2024
1 parent ba10140 commit 4ed9d28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/commands/handlers/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,10 @@ 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];
const certfp = command.params[command.params.length - 1];
cache.certfp = cache.certfp || certfp;
cache.certfps = cache.certfps || [];
cache.certfps.push(certfp);
},

RPL_WHOISACCOUNT: function(command, handler) {
Expand Down

0 comments on commit 4ed9d28

Please sign in to comment.