Print out PROTOCOL_VERSIONs if server is incompatible with client
authorPerttu Ahola <celeron55@gmail.com>
Thu, 1 Dec 2011 23:24:54 +0000 (01:24 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Thu, 1 Dec 2011 23:24:54 +0000 (01:24 +0200)
src/server.cpp

index 3e7ee008db14e60fce856da71c131ba075f92f20..361be9efde7f7d36892c673c95a5d8a5d9531ccd 100644 (file)
@@ -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;
                        }