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/gui/windows/socialwindow.cpp | |
parent | 4d54d36ed8e4bcc34e5b9f90e2126fadb490c34f (diff) | |
download | manaverse-72cc15bc148acc2484a2be3b6e7da322735aca95.tar.gz manaverse-72cc15bc148acc2484a2be3b6e7da322735aca95.tar.bz2 manaverse-72cc15bc148acc2484a2be3b6e7da322735aca95.tar.xz manaverse-72cc15bc148acc2484a2be3b6e7da322735aca95.zip |
add server feature haveNativeGuilds.
Diffstat (limited to 'src/gui/windows/socialwindow.cpp')
-rw-r--r-- | src/gui/windows/socialwindow.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp index be5cbea11..5a8931524 100644 --- a/src/gui/windows/socialwindow.cpp +++ b/src/gui/windows/socialwindow.cpp @@ -52,6 +52,9 @@ #include "gui/popups/createpartypopup.h" +#include "net/net.h" +#include "net/serverfeatures.h" + #include "debug.h" SocialWindow *socialWindow = nullptr; @@ -342,7 +345,7 @@ void SocialWindow::action(const ActionEvent &event) } else if (eventId == "create guild") { - if (tmwServerVersion > 0) + if (!Net::getServerFeatures()->haveNativeGuilds()) return; std::string name = mGuildCreateDialog->getText(); |