From 5b8f189276b3883253de31d5e7bbbf897d34c85b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 16 Feb 2015 13:13:48 +0300 Subject: Use guildmanager only if build with tmwa support. --- src/gui/windows/socialwindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gui/windows/socialwindow.cpp') diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp index d742a0186..b359bc775 100644 --- a/src/gui/windows/socialwindow.cpp +++ b/src/gui/windows/socialwindow.cpp @@ -304,10 +304,14 @@ void SocialWindow::action(const ActionEvent &event) strprintf(_("Accepted guild invite from %s."), mPartyInviter.c_str())); } +#ifdef TMWA_SUPPORT if (!guildManager || !GuildManager::getEnableGuildBot()) guildHandler->inviteResponse(mGuildInvited, true); else guildManager->inviteResponse(true); +#else + guildHandler->inviteResponse(mGuildInvited, true); +#endif } else if (eventId == "no") { @@ -318,10 +322,14 @@ void SocialWindow::action(const ActionEvent &event) strprintf(_("Rejected guild invite from %s."), mPartyInviter.c_str())); } +#ifdef TMWA_SUPPORT if (!guildManager || !GuildManager::getEnableGuildBot()) guildHandler->inviteResponse(mGuildInvited, false); else guildManager->inviteResponse(false); +#else + guildHandler->inviteResponse(mGuildInvited, false); +#endif } mGuildInvited = 0; -- cgit v1.2.3-70-g09d2