diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-16 13:13:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-16 13:13:48 +0300 |
commit | 5b8f189276b3883253de31d5e7bbbf897d34c85b (patch) | |
tree | c3e6028d800e4caf4acb7ca3f45ba2e63e8df26b /src/gui/windows | |
parent | 47d811c90a4655b69f1846c16150efebbfa4ccfa (diff) | |
download | mv-5b8f189276b3883253de31d5e7bbbf897d34c85b.tar.gz mv-5b8f189276b3883253de31d5e7bbbf897d34c85b.tar.bz2 mv-5b8f189276b3883253de31d5e7bbbf897d34c85b.tar.xz mv-5b8f189276b3883253de31d5e7bbbf897d34c85b.zip |
Use guildmanager only if build with tmwa support.
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/socialwindow.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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; |