code are lowercase

This commit is contained in:
sgay 2022-09-14 15:21:59 +00:00
parent 7a397accb9
commit 4443f6c1a3

View file

@ -111,6 +111,7 @@ io.sockets.on('connection', function(socket){
equipes[i].emit('changeColor', {"id": socket.id, "color": d.color});
});
socket.on('message', function(d){
d.content = d.content.toLowerCase();
if(d.content == PWD_TRACKED){
d.color = 0;
socket.emit('popup', {"content": MSG_TRACKED});