summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-10 22:02:37 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-10 22:02:37 +0300
commit4247e05ae8ee9e14323629701c3a11e5c2fac674 (patch)
treecadc54d611b88fa17b4530a4a530965a7817d47a /src/net/tmwa
parentec0159f464cda17f131204a38caa0c5c584fe255 (diff)
downloadplus-4247e05ae8ee9e14323629701c3a11e5c2fac674.tar.gz
plus-4247e05ae8ee9e14323629701c3a11e5c2fac674.tar.bz2
plus-4247e05ae8ee9e14323629701c3a11e5c2fac674.tar.xz
plus-4247e05ae8ee9e14323629701c3a11e5c2fac674.zip
eathnea; add support for update hosts.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/loginhandler.cpp23
-rw-r--r--src/net/tmwa/loginhandler.h2
2 files changed, 0 insertions, 25 deletions
diff --git a/src/net/tmwa/loginhandler.cpp b/src/net/tmwa/loginhandler.cpp
index 42ea0101b..ee0381475 100644
--- a/src/net/tmwa/loginhandler.cpp
+++ b/src/net/tmwa/loginhandler.cpp
@@ -242,29 +242,6 @@ void LoginHandler::processServerVersion(Net::MessageIn &msg)
mVersionResponse = true;
}
-void LoginHandler::processUpdateHost2(Net::MessageIn &msg)
-{
- 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);
-}
-
int LoginHandler::supportedOptionalActions() const
{
return serverFeatures->haveEmailOnRegister()
diff --git a/src/net/tmwa/loginhandler.h b/src/net/tmwa/loginhandler.h
index 03f2c22b4..f6565d3e3 100644
--- a/src/net/tmwa/loginhandler.h
+++ b/src/net/tmwa/loginhandler.h
@@ -67,8 +67,6 @@ class LoginHandler final : public MessageHandler, public Ea::LoginHandler
static void requestUpdateHosts();
- static void processUpdateHost2(Net::MessageIn &msg);
-
private:
void sendLoginRegister(const std::string &restrict username,
const std::string &restrict password,