mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Do not broadcast an empty chat message when someone tries to log in with the wrong password
This commit is contained in:
@@ -4824,7 +4824,8 @@ void Server::handlePeerChange(PeerChange &c)
|
|||||||
//SendPlayerInfos();
|
//SendPlayerInfos();
|
||||||
|
|
||||||
// Send leave chat message to all remaining clients
|
// Send leave chat message to all remaining clients
|
||||||
BroadcastChatMessage(message);
|
if(message.length() != 0)
|
||||||
|
BroadcastChatMessage(message);
|
||||||
|
|
||||||
} // PEER_REMOVED
|
} // PEER_REMOVED
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user