summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-07 22:56:05 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-09 00:29:40 +0300
commiteacf63c7a4c660b38329325c3958bbc63d10ee5c (patch)
treea06eb415526220ce0911c686dd69e9adcf848dd3 /src/net/ea
parentb384454131c7bd50ba171b1fdbad64cfc83d1ffb (diff)
downloadmanaplus-eacf63c7a4c660b38329325c3958bbc63d10ee5c.tar.gz
manaplus-eacf63c7a4c660b38329325c3958bbc63d10ee5c.tar.bz2
manaplus-eacf63c7a4c660b38329325c3958bbc63d10ee5c.tar.xz
manaplus-eacf63c7a4c660b38329325c3958bbc63d10ee5c.zip
Add support for many update hosts (evol server only).
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/loginhandler.cpp1
-rw-r--r--src/net/ea/loginhandler.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/net/ea/loginhandler.cpp b/src/net/ea/loginhandler.cpp
index 39a920f03..560893a4f 100644
--- a/src/net/ea/loginhandler.cpp
+++ b/src/net/ea/loginhandler.cpp
@@ -151,6 +151,7 @@ void LoginHandler::processUpdateHost(Net::MessageIn &msg)
len = msg.readInt16() - 4;
mUpdateHost = msg.readString(len);
+
if (!checkPath(mUpdateHost))
{
mUpdateHost = "";
diff --git a/src/net/ea/loginhandler.h b/src/net/ea/loginhandler.h
index 555de6385..c3bd2a4e8 100644
--- a/src/net/ea/loginhandler.h
+++ b/src/net/ea/loginhandler.h
@@ -79,6 +79,8 @@ class LoginHandler : public Net::LoginHandler
virtual void processUpdateHost(Net::MessageIn &msg);
+ virtual void processUpdateHost2(Net::MessageIn &msg) = 0;
+
virtual void processLoginData(Net::MessageIn &msg);
virtual void processLoginError(Net::MessageIn &msg);