projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8bbece
)
Print out PROTOCOL_VERSIONs if server is incompatible with client
author
Perttu Ahola
<celeron55@gmail.com>
Thu, 1 Dec 2011 23:24:54 +0000
(
01:24
+0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Thu, 1 Dec 2011 23:24:54 +0000
(
01:24
+0200)
src/server.cpp
patch
|
blob
|
history
diff --git
a/src/server.cpp
b/src/server.cpp
index 3e7ee008db14e60fce856da71c131ba075f92f20..361be9efde7f7d36892c673c95a5d8a5d9531ccd 100644
(file)
--- 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;
}