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/actions/chat.cpp | |
parent | 47d811c90a4655b69f1846c16150efebbfa4ccfa (diff) | |
download | manaplus-5b8f189276b3883253de31d5e7bbbf897d34c85b.tar.gz manaplus-5b8f189276b3883253de31d5e7bbbf897d34c85b.tar.bz2 manaplus-5b8f189276b3883253de31d5e7bbbf897d34c85b.tar.xz manaplus-5b8f189276b3883253de31d5e7bbbf897d34c85b.zip |
Use guildmanager only if build with tmwa support.
Diffstat (limited to 'src/actions/chat.cpp')
-rw-r--r-- | src/actions/chat.cpp | 6 |
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 |