Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 307 response to whois #150

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/codes.js
Expand Up @@ -167,6 +167,10 @@ module.exports = { // {{{
"name" : "rpl_nowaway", "name" : "rpl_nowaway",
"type" : "reply" "type" : "reply"
}, },
"307" : {
"name" : "rpl_whoisregistered",
"type" : "reply"
},
"311" : { "311" : {
"name" : "rpl_whoisuser", "name" : "rpl_whoisuser",
"type" : "reply" "type" : "reply"
Expand Down
3 changes: 3 additions & 0 deletions lib/irc.js
Expand Up @@ -330,6 +330,9 @@ function Client(server, nick, opt) {
case "rpl_away": case "rpl_away":
self._addWhoisData(message.args[1], 'away', message.args[2], true); self._addWhoisData(message.args[1], 'away', message.args[2], true);
break; break;
case "rpl_whoisregistered":
self._addWhoisData(message.args[1], 'registered', true);
break;
case "rpl_whoisuser": case "rpl_whoisuser":
self._addWhoisData(message.args[1], 'user', message.args[2]); self._addWhoisData(message.args[1], 'user', message.args[2]);
self._addWhoisData(message.args[1], 'host', message.args[3]); self._addWhoisData(message.args[1], 'host', message.args[3]);
Expand Down