summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/whoisonline.cpp6
-rw-r--r--src/gui/windows/whoisonline.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/windows/whoisonline.cpp b/src/gui/windows/whoisonline.cpp
index 140815c02..119b31664 100644
--- a/src/gui/windows/whoisonline.cpp
+++ b/src/gui/windows/whoisonline.cpp
@@ -58,6 +58,8 @@
#include "utils/gettext.h"
#include "utils/sdlhelper.h"
+#include "net/net.h"
+
#ifndef TMWA_SUPPORT
#include <curl/curl.h>
#endif // TMWA_SUPPORT
@@ -118,7 +120,9 @@ WhoIsOnline::WhoIsOnline() :
mUpdateOnlineList(config.getBoolValue("updateOnlineList")),
mGroupFriends(true),
mServerSideList(serverFeatures->haveServerOnlineList()),
- mWebList(serverFeatures->haveOnlineList())
+#ifdef TMWA_SUPPORT
+ mWebList(Net::getNetworkType() == ServerType::TMWATHENA)
+#endif
{
mCurlError[0] = 0;
setWindowName("WhoIsOnline");
diff --git a/src/gui/windows/whoisonline.h b/src/gui/windows/whoisonline.h
index fc947b527..4ba71b49f 100644
--- a/src/gui/windows/whoisonline.h
+++ b/src/gui/windows/whoisonline.h
@@ -172,7 +172,9 @@ class WhoIsOnline final : public Window,
bool mUpdateOnlineList;
bool mGroupFriends;
bool mServerSideList;
+#ifdef TMWA_SUPPORT
bool mWebList;
+#endif
};
extern WhoIsOnline *whoIsOnline;