From fcd38e8269205f062e27ea42d5107e5700023ff3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 15 Sep 2014 00:25:28 +0300 Subject: eathena: remove some tmw/evol related packets. --- src/net/eathena/loginhandler.cpp | 37 ++++--------------------------------- 1 file changed, 4 insertions(+), 33 deletions(-) (limited to 'src/net/eathena/loginhandler.cpp') diff --git a/src/net/eathena/loginhandler.cpp b/src/net/eathena/loginhandler.cpp index 2c641bace..4f0511987 100644 --- a/src/net/eathena/loginhandler.cpp +++ b/src/net/eathena/loginhandler.cpp @@ -49,8 +49,6 @@ LoginHandler::LoginHandler() : { static const uint16_t _messages[] = { - SMSG_UPDATE_HOST, - SMSG_UPDATE_HOST2, SMSG_LOGIN_DATA, SMSG_LOGIN_ERROR, SMSG_LOGIN_ERROR2, @@ -73,14 +71,6 @@ void LoginHandler::handleMessage(Net::MessageIn &msg) procecessCharPasswordResponse(msg); break; - case SMSG_UPDATE_HOST: - processUpdateHost(msg); - break; - - case SMSG_UPDATE_HOST2: - processUpdateHost2(msg); - break; - case SMSG_LOGIN_DATA: processLoginData(msg); break; @@ -157,29 +147,6 @@ ServerInfo *LoginHandler::getCharServer() const return &charServer; } -void LoginHandler::processUpdateHost2(Net::MessageIn &msg) const -{ - const int len = msg.readInt16("len") - 4; - const std::string updateHost = msg.readString(len, "host"); - - splitToStringVector(loginData.updateHosts, updateHost, '|'); - FOR_EACH (StringVectIter, it, loginData.updateHosts) - { - if (!checkPath(*it)) - { - logger->log1("Warning: incorrect update server name"); - loginData.updateHosts.clear(); - break; - } - } - - logger->log("Received update hosts \"%s\" from login server.", - updateHost.c_str()); - - if (client->getState() == STATE_PRE_LOGIN) - client->setState(STATE_LOGIN); -} - void LoginHandler::processLoginError2(Net::MessageIn &msg) const { const uint32_t code = msg.readInt32("error"); @@ -254,4 +221,8 @@ void LoginHandler::processLoginError2(Net::MessageIn &msg) const client->setState(STATE_ERROR); } +void LoginHandler::processUpdateHost2(Net::MessageIn &msg) const +{ +} + } // namespace EAthena -- cgit v1.2.3-60-g2f50