aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-12-02 01:24:54 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-12-02 01:24:54 +0200
commit09010410cf8a1b68f3042e07ac6bbda99cc15d02 (patch)
treed54d4b807f83e3ee0a1cfaff87dfd589065f9552 /src
parentf8bbecebf546d27c469ed0b7962909f0bf126675 (diff)
downloadminetest-09010410cf8a1b68f3042e07ac6bbda99cc15d02.tar.gz
minetest-09010410cf8a1b68f3042e07ac6bbda99cc15d02.tar.bz2
minetest-09010410cf8a1b68f3042e07ac6bbda99cc15d02.zip
Print out PROTOCOL_VERSIONs if server is incompatible with client
Diffstat (limited to 'src')
-rw-r--r--src/server.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp
index 3e7ee008d..361be9efd 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;
}