diff --git a/traque.js b/traque.js index 4746a1f..4f549a0 100644 --- a/traque.js +++ b/traque.js @@ -110,8 +110,10 @@ io.use(function(socket, next){ var valid = config.validator(id); if(valid == 0 && type == "conscrit" || valid == 1 && type == "vieux"){ - if(!(id in equipes)) + if(!(id in equipes)){ equipes[id] = default_team(id, valid); + emit_update(id); + } next(); } else next(new Error("invalid"));