Skip to content

Commit 7e9f8dd

Browse files
committed
Support multiple RPL_WHOISSPECIAL replies
1 parent 89aee18 commit 7e9f8dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/commands/handlers/user.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@ var handlers = {
262262
RPL_WHOISSPECIAL: function(command) {
263263
var cache_key = command.params[1].toLowerCase();
264264
var cache = this.cache('whois.' + cache_key);
265-
cache.special = command.params[command.params.length - 1];
265+
cache.special = cache.special || [];
266+
cache.special.push(command.params[command.params.length - 1]);
266267
},
267268

268269
RPL_WHOISCOUNTRY: function(command) {

0 commit comments

Comments
 (0)