joinning team send their existence
This commit is contained in:
parent
8974d44267
commit
93be3718c5
1 changed files with 3 additions and 1 deletions
|
@ -110,8 +110,10 @@ io.use(function(socket, next){
|
||||||
var valid = config.validator(id);
|
var valid = config.validator(id);
|
||||||
if(valid == 0 && type == "conscrit" ||
|
if(valid == 0 && type == "conscrit" ||
|
||||||
valid == 1 && type == "vieux"){
|
valid == 1 && type == "vieux"){
|
||||||
if(!(id in equipes))
|
if(!(id in equipes)){
|
||||||
equipes[id] = default_team(id, valid);
|
equipes[id] = default_team(id, valid);
|
||||||
|
emit_update(id);
|
||||||
|
}
|
||||||
next();
|
next();
|
||||||
} else
|
} else
|
||||||
next(new Error("invalid"));
|
next(new Error("invalid"));
|
||||||
|
|
Loading…
Reference in a new issue