From 93be3718c5ff551b23f45bebf8b45dd285f2ed43 Mon Sep 17 00:00:00 2001 From: catvayor Date: Sun, 11 Jun 2023 17:15:04 +0200 Subject: [PATCH] joinning team send their existence --- traque.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"));