From 5190fe2cdac7c259d96619e4686f8543bdc96af4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Feb 2013 13:35:24 +0300 Subject: Improve string usage in other files. --- src/net/tmwa/chathandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/net/tmwa/chathandler.cpp') diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp index 9147a448a..723a164f2 100644 --- a/src/net/tmwa/chathandler.cpp +++ b/src/net/tmwa/chathandler.cpp @@ -109,7 +109,8 @@ void ChatHandler::talk(const std::string &text) if (!player_node) return; - std::string mes = player_node->getName() + " : " + text; + std::string mes = std::string(player_node->getName()).append( + " : ").append(text); MessageOut outMsg(CMSG_CHAT_MESSAGE); // Added + 1 in order to let eAthena parse admin commands correctly -- cgit v1.2.3-60-g2f50