From 6ce16c283d584fc1a90a5e68f986a90fdc6e8da5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 Sep 2014 14:03:02 +0300 Subject: Add chat command for rename homunculus. New chat comamnd: sethomunname NAME --- src/actions/commands.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/actions/commands.cpp') diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 7696c3db1..4cf529ec0 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -40,6 +40,7 @@ #include "net/adminhandler.h" #include "net/chathandler.h" #include "net/guildhandler.h" +#include "net/homunculushandler.h" #include "net/net.h" #include "net/pethandler.h" #include "net/serverfeatures.h" @@ -700,4 +701,14 @@ impHandler(setPetName) return true; } +impHandler(setHomunculusName) +{ + const std::string args = event.args; + if (args.empty()) + return false; + + homunculusHandler->setName(args); + return true; +} + } // namespace Actions -- cgit v1.2.3-60-g2f50