Server: Reading nick changes fix on Inspircd
authorDarren <darren@darrenwhitlen.com>
Fri, 9 Nov 2012 16:22:42 +0000 (16:22 +0000)
committerDarren <darren@darrenwhitlen.com>
Fri, 9 Nov 2012 16:22:42 +0000 (16:22 +0000)
server/irc/commands.js

index afeb4ed2d724887dab11e8183b39461afb1437f7..1750635899d571247049bb58192e329e42b2059d 100644 (file)
@@ -342,7 +342,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.trailing || command.params[0]});
             },
     'TOPIC':                function (command) {
                                /*command.server = this.con_num;