mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 03:32:06 +00:00
Fix #159
This commit is contained in:
parent
d2271a020b
commit
ecabb5e71b
1 changed files with 3 additions and 1 deletions
4
user.js
4
user.js
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue