From: Perttu Ahola Date: Thu, 1 Dec 2011 23:24:54 +0000 (+0200) Subject: Print out PROTOCOL_VERSIONs if server is incompatible with client X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=09010410cf8a1b68f3042e07ac6bbda99cc15d02;p=zefram%2Fminetest%2Fminetest_engine.git Print out PROTOCOL_VERSIONs if server is incompatible with client --- diff --git a/src/server.cpp b/src/server.cpp index 3e7ee008..361be9ef 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -2015,7 +2015,11 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id) SendAccessDenied(m_con, peer_id, std::wstring( L"Your client's version is not supported.\n" L"Server version is ") - + narrow_to_wide(VERSION_STRING) + L"." + + narrow_to_wide(VERSION_STRING) + L",\n" + + L"server's PROTOCOL_VERSION is " + + narrow_to_wide(itos(PROTOCOL_VERSION)) + + L", client's PROTOCOL_VERSION is " + + narrow_to_wide(itos(net_proto_version)) ); return; }