diff options
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r-- | src/net/eathena/chathandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index 19e5c2112..f88d40689 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -107,7 +107,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 |