Merge pull request #230 from xeoncore/bug/illegalusernames

Replace illegal characters in username
This commit is contained in:
Mattias Erming 2014-10-12 15:11:28 +02:00
commit f50568b6ec
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ Client.prototype.connect = function(args) {
});
var nick = args.nick || "shout-user";
var username = args.username || nick;
var username = args.username || nick.replace(/[^a-zA-Z0-9]/g, '');
var realname = args.realname || "Shout User";
var irc = slate(stream);