mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 12:33:07 +00:00
Merge pull request #230 from xeoncore/bug/illegalusernames
Replace illegal characters in username
This commit is contained in:
commit
f50568b6ec
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue