summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-01 14:30:02 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-01 14:30:02 -0600
commit90ab21c3fad071145bf84bafa55be8a13be9f2e6 (patch)
treeee507944ee61c048fd1c353459561b64fe6bd1ab
parent1edba9ffc97e5f959b021941d110a47c094786fe (diff)
downloadmana-client-90ab21c3fad071145bf84bafa55be8a13be9f2e6.tar.gz
mana-client-90ab21c3fad071145bf84bafa55be8a13be9f2e6.tar.bz2
mana-client-90ab21c3fad071145bf84bafa55be8a13be9f2e6.tar.xz
mana-client-90ab21c3fad071145bf84bafa55be8a13be9f2e6.zip
Fix sending chat to eAthena
-rw-r--r--src/net/ea/chathandler.cpp4
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)