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

View file

@ -150,7 +150,7 @@ Client.prototype.connect = function(args) {
}); });
var nick = args.nick || "shout-user"; 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 realname = args.realname || "Shout User";
var irc = slate(stream); var irc = slate(stream);