WHOIS: Add support for RPL_WHOISREGNICK
authorJack Allnutt <m2ys4u@Gmail.com>
Sat, 6 Oct 2012 14:35:43 +0000 (15:35 +0100)
committerJack Allnutt <m2ys4u@Gmail.com>
Sat, 6 Oct 2012 14:35:43 +0000 (15:35 +0100)
server/irc-commands.js

index bacca056d91cfe1b14369ee3e4c542ae31d1e051..1dcd7832d91e3c8c72c1ae0d361608068f992ad8 100755 (executable)
@@ -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';