diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-16 17:30:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-16 17:30:42 +0300 |
commit | 72cc15bc148acc2484a2be3b6e7da322735aca95 (patch) | |
tree | ebb4c781ab7e95a941a1cf2c3265754a1d088b84 /src/actions/commands.cpp | |
parent | 4d54d36ed8e4bcc34e5b9f90e2126fadb490c34f (diff) | |
download | plus-72cc15bc148acc2484a2be3b6e7da322735aca95.tar.gz plus-72cc15bc148acc2484a2be3b6e7da322735aca95.tar.bz2 plus-72cc15bc148acc2484a2be3b6e7da322735aca95.tar.xz plus-72cc15bc148acc2484a2be3b6e7da322735aca95.zip |
add server feature haveNativeGuilds.
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r-- | src/actions/commands.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 692837ce6..c8829970f 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -40,8 +40,9 @@ #include "net/adminhandler.h" #include "net/chathandler.h" #include "net/guildhandler.h" -#include "net/pethandler.h" #include "net/net.h" +#include "net/pethandler.h" +#include "net/serverfeatures.h" #include "utils/chatutils.h" #include "utils/gettext.h" @@ -411,8 +412,11 @@ impHandler(sendMail) impHandler(info) { - if (!event.tab || !localPlayer || tmwServerVersion > 0) + if (!event.tab || !localPlayer + || !Net::getServerFeatures()->haveNativeGuilds()) + { return false; + } switch (event.tab->getType()) { |