This commit is contained in:
Killian Marty 2023-12-06 09:46:36 +01:00
parent 6fbadede9d
commit af8b62af1a

View file

@ -93,6 +93,9 @@ wss.on('connection', (socket, req) => {
if(username===undefined){
username = "Soldat Inconnu"
}
if(username.length > 100){
username=username.substring(0, 100);
}
createNewPlayer(socket, username);
socket.on('message', (message) => {