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-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=275a348b75ae710f5cfdb71595ea6e95ecdbcd63;p=zefram%2Fminetest%2Fminetest_engine.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 873198d1..dcbc9fe7 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