Fix incorrect handing of NICK command
authorJack Allnutt <m2ys4u@Gmail.com>
Tue, 31 Jul 2012 21:27:23 +0000 (22:27 +0100)
committerJack Allnutt <m2ys4u@Gmail.com>
Tue, 31 Jul 2012 21:27:23 +0000 (22:27 +0100)
server/irc-commands.js

index 36402c958a6acf2f4f325a7432c80501cc5ffc05..b777d86c88387f4d810a9e8fbc7b20c4a75de836 100755 (executable)
@@ -327,7 +327,7 @@ var listeners = {
                                command.command = 'NICK';
                                this.client.sendIRCCommand(command);*/
                 //websocket.sendClientEvent('nick', {nick: msg.nick, ident: msg.ident, hostname: msg.hostname, newnick: msg.trailing});
-                this.client.sendIRCCommand('nick', {server: this.con_num, nick: command.nick, ident: command.ident, hostname: command.hostname, newnick: command.trailing});
+                this.client.sendIRCCommand('nick', {server: this.con_num, nick: command.nick, ident: command.ident, hostname: command.hostname, newnick: command.params[0]});
             },
     'TOPIC':                function (command) {
                                /*command.server = this.con_num;