diff options
author | smatz <smatz@openttd.org> | 2010-04-11 17:25:44 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2010-04-11 17:25:44 +0000 |
commit | 43015ad79b0a2de4ca378710d34740ad508aa5c1 (patch) | |
tree | 15c5dae82651d109f59f69c93515e8cb1d173d74 | |
parent | 13e5058efe0d2712b997f810949d6e2a51adfbdd (diff) | |
download | openttd-43015ad79b0a2de4ca378710d34740ad508aa5c1.tar.xz |
(svn r19609) -Fix: do not print 'Connection lost' message for clients who failed to enter correct password
-rw-r--r-- | src/network/network.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |