/ char allowed in the username for ZNC multi servers
authorDarren <darren@Darrens-MacBook-Pro.local>
Mon, 8 Apr 2013 16:03:47 +0000 (17:03 +0100)
committerDarren <darren@Darrens-MacBook-Pro.local>
Mon, 8 Apr 2013 16:03:47 +0000 (17:03 +0100)
server/irc/connection.js

index e6ba18a365b640a7c59e6933a8d7059dfa9366dc..c392cac91da2ba51686693dedb3e324703629663 100644 (file)
@@ -41,7 +41,7 @@ var IrcConnection = function (hostname, port, ssl, nick, user, pass, state) {
     // User information
     this.nick = nick;
     this.user = user;  // Contains users real hostname and address
-    this.username = this.nick.replace(/[^0-9a-zA-Z\-_.]/, '');
+    this.username = this.nick.replace(/[^0-9a-zA-Z\-_.\/]/, '');
     this.password = pass;
     
     // State object