srv
This commit is contained in:
parent
6fbadede9d
commit
af8b62af1a
1 changed files with 3 additions and 0 deletions
|
@ -93,6 +93,9 @@ wss.on('connection', (socket, req) => {
|
||||||
if(username===undefined){
|
if(username===undefined){
|
||||||
username = "Soldat Inconnu"
|
username = "Soldat Inconnu"
|
||||||
}
|
}
|
||||||
|
if(username.length > 100){
|
||||||
|
username=username.substring(0, 100);
|
||||||
|
}
|
||||||
createNewPlayer(socket, username);
|
createNewPlayer(socket, username);
|
||||||
|
|
||||||
socket.on('message', (message) => {
|
socket.on('message', (message) => {
|
||||||
|
|
Loading…
Reference in a new issue