From: Jack Allnutt Date: Thu, 8 Nov 2012 23:21:29 +0000 (+0000) Subject: Send the modified USER line to the IRCd X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=91c52e384ffb0fb5e71a972c9b90fadd9ee49ddd;p=KiwiIRC.git Send the modified USER line to the IRCd --- 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'); }