diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-17 12:18:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-17 12:18:10 +0300 |
commit | fa1edb2eff191d3c1ab7366d3918a57769379c57 (patch) | |
tree | 94a2d744cc07295a943bb488a4e7f2c26620e79c /src/actions/pets.cpp | |
parent | 2cdd26078b672c19ba4f440df20a59082b00a1f6 (diff) | |
download | manaplus-fa1edb2eff191d3c1ab7366d3918a57769379c57.tar.gz manaplus-fa1edb2eff191d3c1ab7366d3918a57769379c57.tar.bz2 manaplus-fa1edb2eff191d3c1ab7366d3918a57769379c57.tar.xz manaplus-fa1edb2eff191d3c1ab7366d3918a57769379c57.zip |
Add server feature haveTalkPet.
Diffstat (limited to 'src/actions/pets.cpp')
-rw-r--r-- | src/actions/pets.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/actions/pets.cpp b/src/actions/pets.cpp index 93bc9dc62..7d3e4c672 100644 --- a/src/actions/pets.cpp +++ b/src/actions/pets.cpp @@ -32,6 +32,7 @@ #include "net/chathandler.h" #include "net/pethandler.h" +#include "net/serverfeatures.h" #include "utils/chatutils.h" #include "utils/stringutils.h" @@ -62,6 +63,9 @@ impHandler(commandEmotePet) impHandler(talkPet) { + if (!serverFeatures->haveTalkPet()) + return false; + std::string args = event.args; // in future probably need add channel detection if (!localPlayer->getPets().empty()) |