Skip to content

Commit 8fcd61c

Browse files
authored
Merge pull request #164 from SimosNap/master
Added RPL_WHOISCOUNTRY support ( 344 inspircd specific )
2 parents b85fda8 + 1ffd1f7 commit 8fcd61c

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
@@ -265,6 +265,12 @@ var handlers = {
265265
cache.special = command.params[command.params.length - 1];
266266
},
267267

268+
RPL_WHOISCOUNTRY: function(command) {
269+
var cache_key = command.params[1].toLowerCase();
270+
var cache = this.cache('whois.' + cache_key);
271+
cache.country = command.params[command.params.length - 1];
272+
},
273+
268274
RPL_WHOISACTUALLY: function(command) {
269275
var cache_key = command.params[1].toLowerCase();
270276
var cache = this.cache('whois.' + cache_key);

src/commands/numerics.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ module.exports = {
9595
'335': 'RPL_WHOISBOT',
9696
'338': 'RPL_WHOISACTUALLY',
9797
'341': 'RPL_INVITING',
98+
'344': 'RPL_WHOISCOUNTRY',
9899
'352': 'RPL_WHOREPLY',
99100
'353': 'RPL_NAMEREPLY',
100101
'364': 'RPL_LINKS',

0 commit comments

Comments
 (0)