From 5857f579da26ac21802679bce1777cd8337bd584 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 26 Apr 2013 12:39:39 +0300 Subject: add support for separate online list. --- src/client.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/client.cpp') 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) -- cgit v1.2.3-60-g2f50