Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/kiwiirc/irc-framework
Browse files Browse the repository at this point in the history
* 'master' of https://github.com/kiwiirc/irc-framework:
  Added RPL_WHOISCOUNTRY support ( 344 inspircd specific )
  • Loading branch information
prawnsalad committed Jul 15, 2018
2 parents b8bcda6 + 8fcd61c commit 117276d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/commands/handlers/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,12 @@ var handlers = {
cache.special = command.params[command.params.length - 1];
},

RPL_WHOISCOUNTRY: function(command) {
var cache_key = command.params[1].toLowerCase();
var cache = this.cache('whois.' + cache_key);
cache.country = command.params[command.params.length - 1];
},

RPL_WHOISACTUALLY: function(command) {
var cache_key = command.params[1].toLowerCase();
var cache = this.cache('whois.' + cache_key);
Expand Down
1 change: 1 addition & 0 deletions src/commands/numerics.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ module.exports = {
'335': 'RPL_WHOISBOT',
'338': 'RPL_WHOISACTUALLY',
'341': 'RPL_INVITING',
'344': 'RPL_WHOISCOUNTRY',
'352': 'RPL_WHOREPLY',
'353': 'RPL_NAMEREPLY',
'364': 'RPL_LINKS',
Expand Down

0 comments on commit 117276d

Please sign in to comment.