diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-16 23:48:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-16 23:48:24 +0300 |
commit | 2cdd26078b672c19ba4f440df20a59082b00a1f6 (patch) | |
tree | dc3c53303e299f04ead3e473f9c71be229faa902 /src/net/tmwa/chathandler.cpp | |
parent | 0561612345f979a3c59ed4feeeddf6491974905a (diff) | |
download | plus-2cdd26078b672c19ba4f440df20a59082b00a1f6.tar.gz plus-2cdd26078b672c19ba4f440df20a59082b00a1f6.tar.bz2 plus-2cdd26078b672c19ba4f440df20a59082b00a1f6.tar.xz plus-2cdd26078b672c19ba4f440df20a59082b00a1f6.zip |
Move talkPet from ea namespace into eathena and tmwa.
Diffstat (limited to 'src/net/tmwa/chathandler.cpp')
-rw-r--r-- | src/net/tmwa/chathandler.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp index 9413bf4ea..e4066e91f 100644 --- a/src/net/tmwa/chathandler.cpp +++ b/src/net/tmwa/chathandler.cpp @@ -680,4 +680,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 TmwAthena |