summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-28 18:19:02 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-28 18:19:02 +0300
commitd2b9c0a5ec5cd14736c96a28dcccb5f298a5f0aa (patch)
tree787d24211d2eec87d4c1bf09f229f800dfc1b40a /src/commandhandler.cpp
parentbbd0811ae3b62dc96796d8d6829bae0fe38c473b (diff)
downloadmv-d2b9c0a5ec5cd14736c96a28dcccb5f298a5f0aa.tar.gz
mv-d2b9c0a5ec5cd14736c96a28dcccb5f298a5f0aa.tar.bz2
mv-d2b9c0a5ec5cd14736c96a28dcccb5f298a5f0aa.tar.xz
mv-d2b9c0a5ec5cd14736c96a28dcccb5f298a5f0aa.zip
Fix me command in guild tab.
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r--src/commandhandler.cpp8
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: