diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-27 21:58:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-27 22:02:35 +0300 |
commit | a065831539e63dc6e25f4743b3a548aadf92304a (patch) | |
tree | 437f04c89be9a9dc83f5d2487a73802cf6a10760 /src/actions/commands.cpp | |
parent | a9bad635bc89092b4c866a90018c803cd25592c0 (diff) | |
download | mv-a065831539e63dc6e25f4743b3a548aadf92304a.tar.gz mv-a065831539e63dc6e25f4743b3a548aadf92304a.tar.bz2 mv-a065831539e63dc6e25f4743b3a548aadf92304a.tar.xz mv-a065831539e63dc6e25f4743b3a548aadf92304a.zip |
Move pets actions into pets.cpp.
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r-- | src/actions/commands.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index d2155d54b..dab837172 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -47,7 +47,6 @@ #include "net/guildhandler.h" #include "net/homunculushandler.h" #include "net/partyhandler.h" -#include "net/pethandler.h" #include "net/serverfeatures.h" #include "resources/iteminfo.h" @@ -376,14 +375,6 @@ impHandler(commandEmote) return false; } -impHandler(commandEmotePet) -{ - // need use actual pet id - petHandler->emote(static_cast<uint8_t>( - atoi(event.args.c_str())), 0); - return true; -} - impHandler(awayMessage) { if (localPlayer) @@ -733,23 +724,6 @@ impHandler(talkRaw) return true; } -impHandler(talkPet) -{ - std::string args = event.args; - // in future probably need add channel detection - if (!localPlayer->getPets().empty()) - { - if (findCutFirst(args, "/me ")) - args = textToMe(args); - chatHandler->talkPet(args, GENERAL_CHANNEL); - } - else - { - chatHandler->talk(args, GENERAL_CHANNEL); - } - return true; -} - impHandler(gm) { chatHandler->talk("@wgm " + event.args, GENERAL_CHANNEL); @@ -796,16 +770,6 @@ impHandler(serverUnIgnoreWhisper) return true; } -impHandler(setPetName) -{ - const std::string args = event.args; - if (args.empty()) - return false; - - petHandler->setName(args); - return true; -} - impHandler(setHomunculusName) { const std::string args = event.args; |