From e83760a9b74131d7db25949b8b1bd69b8cb4c81d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 23 Sep 2014 15:19:14 +0300 Subject: Add chat command for rename own pet (hercules only) New chat command: /setpetname NAME --- src/actions/commands.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/actions/commands.cpp') diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 254f3868c..7696c3db1 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -690,4 +690,14 @@ impHandler(serverUnIgnoreWhisper) return true; } +impHandler(setPetName) +{ + const std::string args = event.args; + if (args.empty()) + return false; + + petHandler->setName(args); + return true; +} + } // namespace Actions -- cgit v1.2.3-60-g2f50