From 8076d645b7a4271b9b5f100f5ea881891fea7d7c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 1 May 2017 01:22:28 +0300 Subject: Remove ServerFeatures::haveNativeGuilds and ServerFeatures::haveChatChannels. --- src/gui/widgets/tabs/chat/chattab.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/widgets/tabs/chat/chattab.cpp') diff --git a/src/gui/widgets/tabs/chat/chattab.cpp b/src/gui/widgets/tabs/chat/chattab.cpp index 0a8d38355..9010d1406 100644 --- a/src/gui/widgets/tabs/chat/chattab.cpp +++ b/src/gui/widgets/tabs/chat/chattab.cpp @@ -44,6 +44,7 @@ #include "input/inputmanager.h" #include "net/chathandler.h" +#include "net/net.h" #include "net/serverfeatures.h" #include "utils/chatutils.h" @@ -224,7 +225,7 @@ void ChatTab::chatLog(std::string line, } // if configured, move magic messages log to debug chat tab - if (!serverFeatures->haveChatChannels() + if (Net::getNetworkType() == ServerType::TMWATHENA && localChatTab && this == localChatTab && ((config.getBoolValue("showMagicInDebug") && own == ChatMsgType::BY_PLAYER -- cgit v1.2.3-70-g09d2