From 3811864327a314e51d701c18cd8b3fdbdd5a5f45 Mon Sep 17 00:00:00 2001 From: Darren Date: Fri, 9 Nov 2012 16:22:42 +0000 Subject: [PATCH] Server: Reading nick changes fix on Inspircd --- server/irc/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/irc/commands.js b/server/irc/commands.js index afeb4ed..1750635 100644 --- a/server/irc/commands.js +++ b/server/irc/commands.js @@ -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; -- 2.25.1