From 1333ccee41e2acca4ecf4a90a6b230e8bbd23f7d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Aug 2014 00:02:45 +0300 Subject: Move chat command /emotepet into actions. --- src/actions/commands.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/actions/commands.cpp') diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 3a44a58b9..2ee223386 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -69,6 +69,7 @@ #include "gui/widgets/tabs/whispertab.h" #include "net/adminhandler.h" +#include "net/pethandler.h" #include "net/net.h" #include "utils/gettext.h" @@ -338,4 +339,12 @@ impHandler(commandEmote) return false; } +impHandler(commandEmotePet) +{ + // need use actual pet id + Net::getPetHandler()->emote(static_cast( + atoi(event.args.c_str())), 0); + return true; +} + } // namespace Actions -- cgit v1.2.3-60-g2f50