diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-26 16:57:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-27 05:37:27 +0300 |
commit | 12bf548533867a2eb3a1c354b778ef7f9157322a (patch) | |
tree | 3cb6f61396f00a5d3fa280ecd9d99f309f06f4ca /src/client.cpp | |
parent | 2e7bfc350d38e16b3d340f8e4ea69e6ff6748f5c (diff) | |
download | manaplus-12bf548533867a2eb3a1c354b778ef7f9157322a.tar.gz manaplus-12bf548533867a2eb3a1c354b778ef7f9157322a.tar.bz2 manaplus-12bf548533867a2eb3a1c354b778ef7f9157322a.tar.xz manaplus-12bf548533867a2eb3a1c354b778ef7f9157322a.zip |
Basic support for guild bot integration.
Not working context menu actions, chat commands, auto complete.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index 0e871ed91..385af99ad 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -30,6 +30,7 @@ #include "event.h" #include "game.h" #include "guild.h" +#include "guildmanager.h" #include "graphicsvertexes.h" #include "itemshortcut.h" #include "keyboardconfig.h" @@ -793,6 +794,10 @@ int Client::exec() if (mumbleManager) mumbleManager->setServer(mCurrentServer.hostname); + if (!guildManager) + guildManager = new GuildManager(); + guildManager->init(); + if (!mConfigAutoSaved) { mConfigAutoSaved = true; @@ -2180,3 +2185,14 @@ void Client::closeDialogs() NpcDialog::closeAll(); SellDialog::closeAll(); } + +bool Client::isTmw() +{ + if (getServerName() == "server.themanaworld.org" + || Client::getServerName() == "themanaworld.org" + || Client::getServerName() == "81.161.192.4") + { + return true; + } + return false; +} |