Do not broadcast an empty chat message when someone tries to log in with the wrong password

master
Kahrl 2011-11-21 01:42:52 +01:00 committed by Perttu Ahola
parent 189689716c
commit 275a348b75
1 changed files with 2 additions and 1 deletions

View File

@ -4824,6 +4824,7 @@ void Server::handlePeerChange(PeerChange &c)
//SendPlayerInfos(); //SendPlayerInfos();
// Send leave chat message to all remaining clients // Send leave chat message to all remaining clients
if(message.length() != 0)
BroadcastChatMessage(message); BroadcastChatMessage(message);
} // PEER_REMOVED } // PEER_REMOVED