srv
This commit is contained in:
parent
af8b62af1a
commit
182bcd5e81
1 changed files with 1 additions and 1 deletions
|
@ -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 or username == null){
|
||||
username = "Soldat Inconnu"
|
||||
}
|
||||
if(username.length > 100){
|
||||
|
|
Loading…
Reference in a new issue