Merge pull request #230 from xeoncore/bug/illegalusernames
Replace illegal characters in username
This commit is contained in:
commit
f50568b6ec
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue