diff options
Diffstat (limited to 'src/accounthandler.cpp')
-rw-r--r-- | src/accounthandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/accounthandler.cpp b/src/accounthandler.cpp index a07fc2a7..2ec3c298 100644 --- a/src/accounthandler.cpp +++ b/src/accounthandler.cpp @@ -161,14 +161,14 @@ void AccountHandler::processMessage(NetComputer *comp, MessageIn &message) { case PAMSG_LOGIN: { - std::string clientVersion = message.readString(); + unsigned long clientVersion = message.readLong(); std::string username = message.readString(); std::string password = message.readString(); LOG_INFO(username << " is trying to login.", 1); result.writeShort(APMSG_LOGIN_RESPONSE); - if (clientVersion < config.getValue("clientVersion", "0.0.0")) + if (clientVersion < config.getValue("clientVersion", 0)) { LOG_INFO("Client has an unsufficient version number to login.", 1); result.writeByte(LOGIN_INVALID_VERSION); |