summaryrefslogtreecommitdiff
path: root/src/actions/chat.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-01 01:22:28 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-01 02:37:10 +0300
commit8076d645b7a4271b9b5f100f5ea881891fea7d7c (patch)
treefecf49e032f39799a7f26fc069e13a06efe094af /src/actions/chat.cpp
parent21244eb0c558f5d33c9a07f28a5660690c77ef19 (diff)
downloadplus-8076d645b7a4271b9b5f100f5ea881891fea7d7c.tar.gz
plus-8076d645b7a4271b9b5f100f5ea881891fea7d7c.tar.bz2
plus-8076d645b7a4271b9b5f100f5ea881891fea7d7c.tar.xz
plus-8076d645b7a4271b9b5f100f5ea881891fea7d7c.zip
Remove ServerFeatures::haveNativeGuilds and ServerFeatures::haveChatChannels.
Diffstat (limited to 'src/actions/chat.cpp')
-rw-r--r--src/actions/chat.cpp15
1 files changed, 8 insertions, 7 deletions
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;
}