Merge branch 'dev' of https://git.etud.insa-toulouse.fr/rebillar/GrandTabernacleAutoVI into dev
This commit is contained in:
commit
1a3e16d65e
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ function createNewPlayer(socket, name){
|
||||||
wss.on('connection', (socket, req) => {
|
wss.on('connection', (socket, req) => {
|
||||||
//create new player, send informations to new player and broadcast new player for all
|
//create new player, send informations to new player and broadcast new player for all
|
||||||
let username = url.parse(req.url, true).query.name;
|
let username = url.parse(req.url, true).query.name;
|
||||||
if(username===undefined){
|
if(username===undefined || username == null){
|
||||||
username = "Soldat Inconnu"
|
username = "Soldat Inconnu"
|
||||||
}
|
}
|
||||||
if(username.length > 100){
|
if(username.length > 100){
|
||||||
|
|
Loading…
Reference in a new issue