This commit is contained in:
calzoneman 2013-06-02 18:09:52 -04:00
parent d2271a020b
commit ecabb5e71b
1 changed files with 3 additions and 1 deletions

View File

@ -83,7 +83,9 @@ User.prototype.initCallbacks = function() {
}.bind(this));
this.socket.on("joinChannel", function(data) {
if(data.name == undefined)
if(this.channel != null)
return;
if(typeof data.name != "string")
return;
if(!data.name.match(/^[a-zA-Z0-9-_]+$/))
return;