diff options
-rw-r--r-- | src/net/ea/chathandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/ea/chathandler.cpp b/src/net/ea/chathandler.cpp index 3628784d..2949c3dc 100644 --- a/src/net/ea/chathandler.cpp +++ b/src/net/ea/chathandler.cpp @@ -175,8 +175,8 @@ void ChatHandler::talk(const std::string &text) MessageOut outMsg(CMSG_CHAT_MESSAGE); // Added + 1 in order to let eAthena parse admin commands correctly - outMsg.writeInt16(text.length() + 4 + 1); - outMsg.writeString(text, text.length() + 1); + outMsg.writeInt16(mes.length() + 4 + 1); + outMsg.writeString(mes, mes.length() + 1); } void ChatHandler::me(const std::string &text) |