summaryrefslogtreecommitdiff
path: root/src/actions
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/actions
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/actions')
-rw-r--r--src/actions/chat.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp
index cacafea5b..5014b24bc 100644
--- a/src/actions/chat.cpp
+++ b/src/actions/chat.cpp
@@ -78,10 +78,12 @@ static void outString(ChatTab *const tab,
return;
guildHandler->chat(guild->getId(), str);
}
+#ifdef TMWA_SUPPORT
else if (guildManager)
{
guildManager->chat(str);
}
+#endif
}
break;
}
@@ -369,10 +371,14 @@ impHandler(guild)
const Guild *const guild = localPlayer->getGuild();
if (guild)
{
+#ifdef TMWA_SUPPORT
if (guild->getServerGuild())
guildHandler->invite(guild->getId(), args);
else if (guildManager)
guildManager->invite(args);
+#else
+ guildHandler->invite(guild->getId(), args);
+#endif
}
}
else