summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-12 21:39:10 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-12 21:39:10 +0300
commit28a73274cc829861dd7a0994c4f837013a239ad0 (patch)
treeb7dbc0d25ec179f056ae074f2609739e05d782b9 /src/commands.cpp
parent395c5bd3ebe27f6dfc4d02c644e3c098caafcb09 (diff)
downloadmv-28a73274cc829861dd7a0994c4f837013a239ad0.tar.gz
mv-28a73274cc829861dd7a0994c4f837013a239ad0.tar.bz2
mv-28a73274cc829861dd7a0994c4f837013a239ad0.tar.xz
mv-28a73274cc829861dd7a0994c4f837013a239ad0.zip
disable native guild support for "new" tmw server.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index ac7b7278d..44449a157 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -114,9 +114,15 @@ static void outString(ChatTab *const tab, const std::string &str,
if (guild)
{
if (guild->getServerGuild())
+ {
+ if (tmwServerVersion > 0)
+ return;
Net::getGuildHandler()->chat(guild->getId(), str);
+ }
else if (guildManager)
+ {
guildManager->chat(str);
+ }
}
break;
}
@@ -212,9 +218,15 @@ static void outStringNormal(ChatTab *const tab,
if (guild)
{
if (guild->getServerGuild())
+ {
+ if (tmwServerVersion > 0)
+ return;
Net::getGuildHandler()->chat(guild->getId(), str);
+ }
else if (guildManager)
+ {
guildManager->chat(str);
+ }
}
break;
}
@@ -402,7 +414,7 @@ impHandler(createParty)
impHandler(createGuild)
{
- if (!tab)
+ if (!tab || tmwServerVersion > 0)
return;
if (args.empty())
@@ -849,7 +861,7 @@ impHandler0(dirs)
impHandler2(info)
{
- if (!tab || !player_node)
+ if (!tab || !player_node || !tmwServerVersion > 0)
return;
switch (tab->getType())