From eee2f72b047262cbb6478c67f2e5293a85ce79e4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 27 Dec 2013 17:56:43 +0300 Subject: allow to owner talk from own pet. New chat command: /talkpet text --- src/net/ea/chathandler.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/net/ea/chathandler.cpp') diff --git a/src/net/ea/chathandler.cpp b/src/net/ea/chathandler.cpp index 698a03ef4..2bfee7ad2 100644 --- a/src/net/ea/chathandler.cpp +++ b/src/net/ea/chathandler.cpp @@ -70,6 +70,14 @@ void ChatHandler::me(const std::string &restrict text, talk(action, channel); } +void ChatHandler::talkPet(const std::string &restrict text, + const std::string &restrict channel) const +{ + // here need string duplication + std::string action = strprintf("\302\202\303 %s", text.c_str()); + talk(action, channel); +} + void ChatHandler::processWhisperResponse(Net::MessageIn &msg) { BLOCK_START("ChatHandler::processWhisperResponse") -- cgit v1.2.3-70-g09d2