This commit is contained in:
Baptiste 2023-12-06 09:50:35 +01:00
commit 1a3e16d65e

View file

@ -90,7 +90,7 @@ function createNewPlayer(socket, name){
wss.on('connection', (socket, req) => {
//create new player, send informations to new player and broadcast new player for all
let username = url.parse(req.url, true).query.name;
if(username===undefined){
if(username===undefined || username == null){
username = "Soldat Inconnu"
}
if(username.length > 100){