This commit is contained in:
Killian Marty 2023-12-06 09:49:25 +01:00
parent 182bcd5e81
commit aa99c27c8c

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 or username == null){
if(username===undefined || username == null){
username = "Soldat Inconnu"
}
if(username.length > 100){