mirror of https://github.com/calzoneman/sync.git
Fix #159
This commit is contained in:
parent
d2271a020b
commit
ecabb5e71b
4
user.js
4
user.js
|
@ -83,7 +83,9 @@ User.prototype.initCallbacks = function() {
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
this.socket.on("joinChannel", function(data) {
|
this.socket.on("joinChannel", function(data) {
|
||||||
if(data.name == undefined)
|
if(this.channel != null)
|
||||||
|
return;
|
||||||
|
if(typeof data.name != "string")
|
||||||
return;
|
return;
|
||||||
if(!data.name.match(/^[a-zA-Z0-9-_]+$/))
|
if(!data.name.match(/^[a-zA-Z0-9-_]+$/))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue