From 43015ad79b0a2de4ca378710d34740ad508aa5c1 Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 11 Apr 2010 17:25:44 +0000 Subject: (svn r19609) -Fix: do not print 'Connection lost' message for clients who failed to enter correct password --- src/network/network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/network/network.cpp b/src/network/network.cpp index e52530a24..24fc8a856 100644 --- a/src/network/network.cpp +++ b/src/network/network.cpp @@ -548,7 +548,7 @@ NetworkRecvStatus NetworkCloseClient(NetworkClientSocket *cs, NetworkRecvStatus */ if (cs->sock == INVALID_SOCKET) return status; - if (status != NETWORK_RECV_STATUS_CONN_LOST && !cs->HasClientQuit() && _network_server && cs->status > STATUS_INACTIVE) { + if (status != NETWORK_RECV_STATUS_CONN_LOST && !cs->HasClientQuit() && _network_server && cs->status >= STATUS_AUTH) { /* We did not receive a leave message from this client... */ char client_name[NETWORK_CLIENT_NAME_LENGTH]; NetworkClientSocket *new_cs; -- cgit v1.2.3-70-g09d2