From: Kahrl Date: Mon, 21 Nov 2011 00:42:52 +0000 (+0100) Subject: Do not broadcast an empty chat message when someone tries to log in with the wrong... X-Git-Tag: 0.4.dev-20111203-3~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=275a348b75ae710f5cfdb71595ea6e95ecdbcd63;p=oweals%2Fminetest.git Do not broadcast an empty chat message when someone tries to log in with the wrong password --- diff --git a/src/server.cpp b/src/server.cpp index 873198d1e..dcbc9fe76 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -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