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/actions/chat.cpp | 15 ++++++++------- src/actions/commands.cpp | 3 +-- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/actions') diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp index 4da242569..0ea63a507 100644 --- a/src/actions/chat.cpp +++ b/src/actions/chat.cpp @@ -35,6 +35,7 @@ #include "net/charserverhandler.h" #include "net/chathandler.h" #include "net/guildhandler.h" +#include "net/net.h" #include "net/partyhandler.h" #include "net/serverfeatures.h" @@ -84,20 +85,21 @@ static void outString(ChatTab *const tab, const Guild *const guild = localPlayer->getGuild(); if (guild) { +#ifdef TMWA_SUPPORT if (guild->getServerGuild()) { - if (!serverFeatures || - !serverFeatures->haveNativeGuilds()) - { + if (Net::getNetworkType() == ServerType::TMWATHENA) return; - } guildHandler->chat(str); } -#ifdef TMWA_SUPPORT else if (guildManager) { guildManager->chat(str); } +#else // TMWA_SUPPORT + + if (guild->getServerGuild()) + guildHandler->chat(str); #endif // TMWA_SUPPORT } break; @@ -355,8 +357,7 @@ impHandler(createParty) impHandler(createGuild) { if (!guildHandler || - !serverFeatures || - !serverFeatures->haveNativeGuilds()) + Net::getNetworkType() == ServerType::TMWATHENA) { return false; } diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index c7633972b..35fd376cc 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -569,8 +569,7 @@ impHandler(info) { if (!event.tab || !localPlayer || - !serverFeatures || - !serverFeatures->haveNativeGuilds()) + Net::getNetworkType() == ServerType::TMWATHENA) { return false; } -- cgit v1.2.3-70-g09d2