From 91c52e384ffb0fb5e71a972c9b90fadd9ee49ddd Mon Sep 17 00:00:00 2001 From: Jack Allnutt Date: Thu, 8 Nov 2012 23:21:29 +0000 Subject: [PATCH] Send the modified USER line to the IRCd --- server/irc/connection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/irc/connection.js b/server/irc/connection.js index 34f0777..5603872 100644 --- a/server/irc/connection.js +++ b/server/irc/connection.js @@ -121,7 +121,7 @@ IrcConnection.prototype.register = function () { this.write('PASS ' + this.password); } this.write('NICK ' + this.nick); - this.write('USER ' + this.nick.replace(/[^0-9a-zA-Z\-_.]/, '') + ' 0 0 :' + '[www.kiwiirc.com] ' + this.nick); + this.write('USER ' + this.user + ' 0 0 :' + '[www.kiwiirc.com] ' + this.nick); if (this.cap_negotation) { this.write('CAP END'); } -- 2.25.1