summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2009-12-01 19:17:09 +0100
committerJared Adams <jaxad0127@gmail.com>2009-12-04 06:28:29 -0700
commitd88c6a103aed290039a608e1f2d7e04b5a5a503f (patch)
treed7f9691b189590209a46d2d48e30a23be3d00617 /src
parentb66d0b55a671af8193ae400920b0bf7bec82eae8 (diff)
downloadmana-client-d88c6a103aed290039a608e1f2d7e04b5a5a503f.tar.gz
mana-client-d88c6a103aed290039a608e1f2d7e04b5a5a503f.tar.bz2
mana-client-d88c6a103aed290039a608e1f2d7e04b5a5a503f.tar.xz
mana-client-d88c6a103aed290039a608e1f2d7e04b5a5a503f.zip
Using the updatehost that was given by EAthena
This is a patch for http://mantis.themanaworld.org/view.php?id=970
Diffstat (limited to 'src')
-rw-r--r--src/main.h3
-rw-r--r--src/net/ea/loginhandler.cpp1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 21785fff..28345e37 100644
--- a/src/main.h
+++ b/src/main.h
@@ -53,6 +53,8 @@
#include <string>
+#include "net/logindata.h"
+
#ifdef HAVE_CONFIG_H
#include "../config.h"
#elif defined WIN32
@@ -130,5 +132,6 @@ enum State {
extern State state;
extern std::string errorMessage;
+extern LoginData loginData;
#endif
diff --git a/src/net/ea/loginhandler.cpp b/src/net/ea/loginhandler.cpp
index e91925de..2c6ac1d2 100644
--- a/src/net/ea/loginhandler.cpp
+++ b/src/net/ea/loginhandler.cpp
@@ -97,6 +97,7 @@ void LoginHandler::handleMessage(Net::MessageIn &msg)
len = msg.readInt16() - 4;
mUpdateHost = msg.readString(len);
+ loginData.updateHost = mUpdateHost;
logger->log("Received update host \"%s\" from login server.",
mUpdateHost.c_str());