summaryrefslogtreecommitdiff
path: root/src/net/tmwa/guildhandler.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/net/tmwa/guildhandler.cpp
parent4d54d36ed8e4bcc34e5b9f90e2126fadb490c34f (diff)
downloadmanaverse-72cc15bc148acc2484a2be3b6e7da322735aca95.tar.gz
manaverse-72cc15bc148acc2484a2be3b6e7da322735aca95.tar.bz2
manaverse-72cc15bc148acc2484a2be3b6e7da322735aca95.tar.xz
manaverse-72cc15bc148acc2484a2be3b6e7da322735aca95.zip
add server feature haveNativeGuilds.
Diffstat (limited to 'src/net/tmwa/guildhandler.cpp')
-rw-r--r--src/net/tmwa/guildhandler.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/tmwa/guildhandler.cpp b/src/net/tmwa/guildhandler.cpp
index 852dfa135..8947c7c32 100644
--- a/src/net/tmwa/guildhandler.cpp
+++ b/src/net/tmwa/guildhandler.cpp
@@ -26,6 +26,9 @@
#include "being/localplayer.h"
#include "being/playerinfo.h"
+#include "net/net.h"
+#include "net/serverfeatures.h"
+
#include "net/tmwa/messageout.h"
#include "net/tmwa/protocol.h"
@@ -83,7 +86,7 @@ GuildHandler::~GuildHandler()
void GuildHandler::handleMessage(Net::MessageIn &msg)
{
BLOCK_START("GuildHandler::handleMessage")
- if (tmwServerVersion > 0)
+ if (!Net::getServerFeatures()->haveNativeGuilds())
return;
switch (msg.getId())