summaryrefslogtreecommitdiff
path: root/src/actions/pets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/pets.cpp')
-rw-r--r--src/actions/pets.cpp4
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())