From: Perttu Ahola Date: Tue, 29 Nov 2011 20:23:03 +0000 (+0200) Subject: Better version match fail messages from server X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=4bcff65ad08db0aba80505602ea2a4844b7c3ea4;p=zefram%2Fminetest%2Fminetest_engine.git Better version match fail messages from server --- diff --git a/src/server.cpp b/src/server.cpp index 4cabcda0..64e67c46 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -2069,8 +2069,11 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id) infostream<<"Server: Cannot negotiate " "serialization version with peer " <getBool("strict_protocol_version_checking")) { - if(net_proto_version < PROTOCOL_VERSION) + if(net_proto_version != PROTOCOL_VERSION) { - SendAccessDenied(m_con, peer_id, - L"Your client is too old. Please upgrade."); + 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"." + ); return; } }