diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-28 18:19:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-28 18:19:02 +0300 |
commit | d2b9c0a5ec5cd14736c96a28dcccb5f298a5f0aa (patch) | |
tree | 787d24211d2eec87d4c1bf09f229f800dfc1b40a /src/commandhandler.cpp | |
parent | bbd0811ae3b62dc96796d8d6829bae0fe38c473b (diff) | |
download | plus-d2b9c0a5ec5cd14736c96a28dcccb5f298a5f0aa.tar.gz plus-d2b9c0a5ec5cd14736c96a28dcccb5f298a5f0aa.tar.bz2 plus-d2b9c0a5ec5cd14736c96a28dcccb5f298a5f0aa.tar.xz plus-d2b9c0a5ec5cd14736c96a28dcccb5f298a5f0aa.zip |
Fix me command in guild tab.
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r-- | src/commandhandler.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp index f650ac8d1..559cfd37e 100644 --- a/src/commandhandler.cpp +++ b/src/commandhandler.cpp @@ -26,6 +26,7 @@ #include "channelmanager.h" #include "channel.h" #include "game.h" +#include "guildmanager.h" #include "localplayer.h" #include "logger.h" #include "main.h" @@ -497,7 +498,12 @@ void CommandHandler::handleMe(const std::string &args, ChatTab *tab) return; const Guild *guild = player_node->getGuild(); if (guild) - Net::getGuildHandler()->chat(guild->getId(), str); + { + if (guild->getServerGuild()) + Net::getGuildHandler()->chat(guild->getId(), str); + else if (guildManager) + guildManager->chat(str); + } break; } default: |