diff --git a/src/client.js b/src/client.js index 20f3efb..dba11ae 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);