summaryrefslogtreecommitdiff
path: root/src/net/eathena/loginhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-15 00:25:28 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-15 00:25:28 +0300
commitfcd38e8269205f062e27ea42d5107e5700023ff3 (patch)
treee432e583e695ee7e6ad4f386c7884175a568c141 /src/net/eathena/loginhandler.cpp
parent64af13a976cbe5cf2d050d3d576f1d008c5a7708 (diff)
downloadplus-fcd38e8269205f062e27ea42d5107e5700023ff3.tar.gz
plus-fcd38e8269205f062e27ea42d5107e5700023ff3.tar.bz2
plus-fcd38e8269205f062e27ea42d5107e5700023ff3.tar.xz
plus-fcd38e8269205f062e27ea42d5107e5700023ff3.zip
eathena: remove some tmw/evol related packets.
Diffstat (limited to 'src/net/eathena/loginhandler.cpp')
-rw-r--r--src/net/eathena/loginhandler.cpp37
1 files changed, 4 insertions, 33 deletions
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