From 2cdd26078b672c19ba4f440df20a59082b00a1f6 Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Mon, 16 Feb 2015 23:48:24 +0300
Subject: Move talkPet from ea namespace into eathena and tmwa.

---
 src/net/eathena/chathandler.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'src/net/eathena/chathandler.cpp')

diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp
index 41fc78f3b..d83daac27 100644
--- a/src/net/eathena/chathandler.cpp
+++ b/src/net/eathena/chathandler.cpp
@@ -745,4 +745,12 @@ void ChatHandler::processBeingChat(Net::MessageIn &msg)
     BLOCK_END("ChatHandler::processBeingChat")
 }
 
+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);
+}
+
 }  // namespace EAthena
-- 
cgit v1.2.3-70-g09d2