Skip to content

Commit c5e19ce

Browse files
authored
Merge pull request #253 from ItsOnlyBinary/whois-certfp
Add support for RPL_WHOISCERTFP
2 parents 2321afa + 9bbdf60 commit c5e19ce

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/commands/handlers/user.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,12 @@ const handlers = {
264264
cache.secure = true;
265265
},
266266

267+
RPL_WHOISCERTFP: function(command, handler) {
268+
const cache_key = command.params[1].toLowerCase();
269+
const cache = handler.cache('whois.' + cache_key);
270+
cache.certfp = command.params[command.params.length - 1];
271+
},
272+
267273
RPL_WHOISACCOUNT: function(command, handler) {
268274
const cache_key = command.params[1].toLowerCase();
269275
const cache = handler.cache('whois.' + cache_key);

src/commands/numerics.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ module.exports = {
6464
'259': 'RPL_ADMINEMAIL',
6565
'265': 'RPL_LOCALUSERS',
6666
'266': 'RPL_GLOBALUSERS',
67+
'276': 'RPL_WHOISCERTFP',
6768
'290': 'RPL_HELPHDR',
6869
'291': 'RPL_HELPOP',
6970
'292': 'RPL_HELPTLR',

0 commit comments

Comments
 (0)