summaryrefslogtreecommitdiff
path: root/src/net/eathena/loginhandler.cpp
diff options
context:
space:
mode:
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