From d4f7d6baaa362e3ec527d20f4b7e32d94f7d2144 Mon Sep 17 00:00:00 2001 From: Benau Date: Fri, 20 Jul 2018 15:46:07 +0800 Subject: [PATCH] Don't show the polling log if currently server --- src/online/online_player_profile.cpp | 8 ++++++++ src/online/online_player_profile.hpp | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/online/online_player_profile.cpp b/src/online/online_player_profile.cpp index 3ebb7bc33..aeef259a5 100644 --- a/src/online/online_player_profile.cpp +++ b/src/online/online_player_profile.cpp @@ -344,6 +344,14 @@ namespace Online request->queue(); } // requestPoll() + // ------------------------------------------------------------------------ + OnlinePlayerProfile::PollRequest::PollRequest() + : XMLRequest(true) + { + m_disable_sending_log = NetworkConfig::get()->isNetworking() && + NetworkConfig::get()->isServer(); + } // PollRequest + // ------------------------------------------------------------------------ /** Callback for the poll request. Parses the information and spawns * notifications accordingly. diff --git a/src/online/online_player_profile.hpp b/src/online/online_player_profile.hpp index 9f2935b56..2a7b9a222 100644 --- a/src/online/online_player_profile.hpp +++ b/src/online/online_player_profile.hpp @@ -61,7 +61,7 @@ namespace Online { virtual void callback (); public: - PollRequest() : XMLRequest(true) {} + PollRequest(); }; // PollRequest private: