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/gui/windows/socialwindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gui/windows') 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(); -- cgit v1.2.3-70-g09d2