From bdf54908aa0b8dabbc67f1925de88bc88a70c935 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Thu, 22 Sep 2011 20:47:47 +0300 Subject: Make client report a newer version number to the server than 2011-07-31 does and make the server enforce it --- src/server.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/server.cpp') diff --git a/src/server.cpp b/src/server.cpp index 14d8942cb..a04417074 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -2010,6 +2010,14 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id) L"Your client is too old. Please upgrade."); return; } + + /* Uhh... this should actually be a warning but let's do it like this */ + if(net_proto_version < 2) + { + SendAccessDenied(m_con, peer_id, + L"Your client is too old. Please upgrade."); + return; + } /* Set up player -- cgit v1.2.3