From 31d283c6c88464837dd57b78f75394367c4d40f7 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 17 Jul 2008 12:02:09 +0000 Subject: (svn r13714) -Fix: remove the unique_id from the message that a client has joined as it is only exposes the unique_id more than needed. Patch by dih. --- src/network/network_client.cpp | 3 --- src/network/network_server.cpp | 2 -- 2 files changed, 5 deletions(-) (limited to 'src') diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp index cd2df7f23..0b52e0169 100644 --- a/src/network/network_client.cpp +++ b/src/network/network_client.cpp @@ -400,10 +400,8 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_CLIENT_INFO) uint16 index = p->Recv_uint16(); PlayerID playas = (Owner)p->Recv_uint8(); char name[NETWORK_NAME_LENGTH]; - char unique_id[NETWORK_UNIQUE_ID_LENGTH]; p->Recv_string(name, sizeof(name)); - p->Recv_string(unique_id, sizeof(unique_id)); if (MY_CLIENT->has_quit) return NETWORK_RECV_STATUS_CONN_LOST; @@ -435,7 +433,6 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_CLIENT_INFO) ci->client_playas = playas; ttd_strlcpy(ci->client_name, name, sizeof(ci->client_name)); - ttd_strlcpy(ci->unique_id, unique_id, sizeof(ci->unique_id)); InvalidateWindow(WC_CLIENT_LIST, 0); diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp index 6cbfe21ba..2e0de667a 100644 --- a/src/network/network_server.cpp +++ b/src/network/network_server.cpp @@ -49,7 +49,6 @@ DEF_SERVER_SEND_COMMAND_PARAM(PACKET_SERVER_CLIENT_INFO)(NetworkTCPSocketHandler // uint16: The index of the client (always unique on a server. 1 = server) // uint8: As which player the client is playing // String: The name of the client - // String: The unique id of the client // if (ci->client_index != NETWORK_EMPTY_INDEX) { @@ -57,7 +56,6 @@ DEF_SERVER_SEND_COMMAND_PARAM(PACKET_SERVER_CLIENT_INFO)(NetworkTCPSocketHandler p->Send_uint16(ci->client_index); p->Send_uint8 (ci->client_playas); p->Send_string(ci->client_name); - p->Send_string(ci->unique_id); cs->Send_Packet(p); } -- cgit v1.2.3-70-g09d2