summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-26 12:39:39 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-26 12:39:39 +0300
commit5857f579da26ac21802679bce1777cd8337bd584 (patch)
tree455ab7a62d15f447bc3fec5388913c7886945682 /src/client.cpp
parent298d8e2ef42eb2c60f1a2c24cf1aeb131dcded09 (diff)
downloadmanaverse-5857f579da26ac21802679bce1777cd8337bd584.tar.gz
manaverse-5857f579da26ac21802679bce1777cd8337bd584.tar.bz2
manaverse-5857f579da26ac21802679bce1777cd8337bd584.tar.xz
manaverse-5857f579da26ac21802679bce1777cd8337bd584.zip
add support for separate online list.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index aac1d8139..e1b92733c 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -270,6 +270,7 @@ Client::Client(const Options &options) :
mNpcsDir(),
mRootDir(),
mServerName(),
+ mOnlineListUrl(),
mCurrentServer(),
mGame(nullptr),
mCurrentDialog(nullptr),
@@ -1069,6 +1070,11 @@ int Client::gameExec()
mServerName = mCurrentServer.hostname;
initServerConfig(mCurrentServer.hostname);
loginData.registerUrl = mCurrentServer.registerUrl;
+ if (!mCurrentServer.onlineListUrl.empty())
+ mOnlineListUrl = mCurrentServer.onlineListUrl;
+ else
+ mOnlineListUrl = mServerName;
+
if (mOptions.username.empty())
{
if (loginData.remember)