add GetServerVersion

This commit is contained in:
Lion Kortlepel
2021-07-15 00:04:44 +02:00
parent e3b6fd7998
commit ba3fd0e144
6 changed files with 39 additions and 10 deletions

View File

@@ -263,7 +263,7 @@ void TNetwork::Authentication(const TConnection& ClientConnection) {
if (Rc.size() > 3 && Rc.substr(0, 2) == "VC") {
Rc = Rc.substr(2);
if (Rc.length() > 4 || Rc != Application::ClientVersion()) {
if (Rc.length() > 4 || Rc != Application::ClientVersionString()) {
ClientKick(*Client, "Outdated Version!");
return;
}