Skip to content
Snippets Groups Projects
Commit 275a348b authored by Kahrl's avatar Kahrl Committed by Perttu Ahola
Browse files

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

parent 18968971
No related branches found
No related tags found
No related merge requests found
......@@ -4824,7 +4824,8 @@ void Server::handlePeerChange(PeerChange &c)
//SendPlayerInfos();
// Send leave chat message to all remaining clients
BroadcastChatMessage(message);
if(message.length() != 0)
BroadcastChatMessage(message);
} // PEER_REMOVED
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment