diff options
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 6 |
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) |