From 275a348b75ae710f5cfdb71595ea6e95ecdbcd63 Mon Sep 17 00:00:00 2001 From: Kahrl Date: Mon, 21 Nov 2011 01:42:52 +0100 Subject: [PATCH] Do not broadcast an empty chat message when someone tries to log in with the wrong password --- src/server.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.30.2