From 72cc15bc148acc2484a2be3b6e7da322735aca95 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Sep 2014 17:30:42 +0300 Subject: add server feature haveNativeGuilds. --- src/utils/chatutils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/utils') diff --git a/src/utils/chatutils.cpp b/src/utils/chatutils.cpp index f3c9076be..ee1c8bfc5 100644 --- a/src/utils/chatutils.cpp +++ b/src/utils/chatutils.cpp @@ -35,6 +35,7 @@ #include "net/guildhandler.h" #include "net/net.h" #include "net/partyhandler.h" +#include "net/serverfeatures.h" #include "debug.h" @@ -67,7 +68,7 @@ void outStringNormal(ChatTab *const tab, { if (guild->getServerGuild()) { - if (tmwServerVersion > 0) + if (!Net::getServerFeatures()->haveNativeGuilds()) return; Net::getGuildHandler()->chat(guild->getId(), str); } -- cgit v1.2.3-70-g09d2