From d2b9c0a5ec5cd14736c96a28dcccb5f298a5f0aa Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 28 Aug 2011 18:19:02 +0300 Subject: Fix me command in guild tab. --- src/commandhandler.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3-70-g09d2