From fa1edb2eff191d3c1ab7366d3918a57769379c57 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Feb 2015 12:18:10 +0300 Subject: Add server feature haveTalkPet. --- src/actions/pets.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/actions') 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()) -- cgit v1.2.3-70-g09d2