summaryrefslogtreecommitdiff
path: root/src/actions/chat.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-16 17:30:42 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-16 17:30:42 +0300
commit72cc15bc148acc2484a2be3b6e7da322735aca95 (patch)
treeebb4c781ab7e95a941a1cf2c3265754a1d088b84 /src/actions/chat.cpp
parent4d54d36ed8e4bcc34e5b9f90e2126fadb490c34f (diff)
downloadmv-72cc15bc148acc2484a2be3b6e7da322735aca95.tar.gz
mv-72cc15bc148acc2484a2be3b6e7da322735aca95.tar.bz2
mv-72cc15bc148acc2484a2be3b6e7da322735aca95.tar.xz
mv-72cc15bc148acc2484a2be3b6e7da322735aca95.zip
add server feature haveNativeGuilds.
Diffstat (limited to 'src/actions/chat.cpp')
-rw-r--r--src/actions/chat.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp
index c10a48fa3..a164e0f23 100644
--- a/src/actions/chat.cpp
+++ b/src/actions/chat.cpp
@@ -37,6 +37,7 @@
#include "net/guildhandler.h"
#include "net/net.h"
#include "net/partyhandler.h"
+#include "net/serverfeatures.h"
#include "utils/booleanoptions.h"
#include "utils/gettext.h"
@@ -74,7 +75,7 @@ static void outString(const ChatTab *const tab,
{
if (guild->getServerGuild())
{
- if (tmwServerVersion > 0)
+ if (!Net::getServerFeatures()->haveNativeGuilds())
return;
Net::getGuildHandler()->chat(guild->getId(), str);
}
@@ -273,7 +274,7 @@ impHandler(createParty)
impHandler(createGuild)
{
- if (!event.tab || tmwServerVersion > 0)
+ if (!event.tab || !Net::getServerFeatures()->haveNativeGuilds())
return false;
if (event.args.empty())