summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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());