diff --git a/src/client.js b/src/client.js index 657fa4f7..339b05a9 100644 --- a/src/client.js +++ b/src/client.js @@ -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);