summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-16 13:13:48 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-16 13:13:48 +0300
commit5b8f189276b3883253de31d5e7bbbf897d34c85b (patch)
treec3e6028d800e4caf4acb7ca3f45ba2e63e8df26b /src/gui/windows
parent47d811c90a4655b69f1846c16150efebbfa4ccfa (diff)
downloadmv-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.cpp8
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;