From f3766a0becaba80f832dc3a1e590eb70e03bfc6b Mon Sep 17 00:00:00 2001 From: Jack Allnutt Date: Sat, 6 Oct 2012 15:35:43 +0100 Subject: [PATCH] WHOIS: Add support for RPL_WHOISREGNICK --- server/irc-commands.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/irc-commands.js b/server/irc-commands.js index bacca05..1dcd783 100755 --- a/server/irc-commands.js +++ b/server/irc-commands.js @@ -4,6 +4,7 @@ var irc_numerics = { RPL_WELCOME: '001', RPL_MYINFO: '004', RPL_ISUPPORT: '005', + RPL_WHOISREGNICK: '307', RPL_WHOISUSER: '311', RPL_WHOISSERVER: '312', RPL_WHOISOPERATOR: '313', @@ -149,6 +150,9 @@ var listeners = { this.client.sendIRCCommand('whois', {server: this.con_num, nick: command.params[1], idle: command.params[2], end: false}); } }, + 'RPL_WHOISREGNICK': function (command) { + this.client.sendIRCCommand('whois', {server: this.con_num, nick: command.params[1], msg: command.trailing, end: false}); + }, 'RPL_LISTSTART': function (command) { /*command.server = this.con_num; command.command = 'RPL_LISTSTART'; -- 2.25.1