diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-17 13:32:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-17 13:33:33 +0300 |
commit | d7a4988bffc489e9584def3ce65ebe2b8f4ca0b0 (patch) | |
tree | 3aded6c870558c63e06761e69745c91abbfed1f9 /src/actions | |
parent | fa1edb2eff191d3c1ab7366d3918a57769379c57 (diff) | |
download | plus-d7a4988bffc489e9584def3ce65ebe2b8f4ca0b0.tar.gz plus-d7a4988bffc489e9584def3ce65ebe2b8f4ca0b0.tar.bz2 plus-d7a4988bffc489e9584def3ce65ebe2b8f4ca0b0.tar.xz plus-d7a4988bffc489e9584def3ce65ebe2b8f4ca0b0.zip |
eathena: add pet talk command
Changed client version to 6.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/pets.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/actions/pets.cpp b/src/actions/pets.cpp index 7d3e4c672..fa413227f 100644 --- a/src/actions/pets.cpp +++ b/src/actions/pets.cpp @@ -67,17 +67,9 @@ impHandler(talkPet) return false; 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); - } + if (findCutFirst(args, "/me ")) + args = textToMe(args); + chatHandler->talkPet(args, GENERAL_CHANNEL); return true; } |