Skip to content

Commit

Permalink
Include country_code (if available) in whois data (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsOnlyBinary authored Dec 11, 2022
1 parent b4bacc4 commit 6effe43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/commands/handlers/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ const handlers = {
const cache_key = command.params[1].toLowerCase();
const cache = handler.cache('whois.' + cache_key);
cache.country = command.params[command.params.length - 1];
if (command.params.length === 4) {
cache.country_code = command.params[2];
}
},

RPL_WHOISASN: function(command, handler) {
Expand Down

0 comments on commit 6effe43

Please sign in to comment.