summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2007-09-11 07:30:39 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2007-09-11 07:30:39 +0000
commitdcea53a7513d11cab73eb8ac8ae2719db72c9be4 (patch)
tree816028129559fb1a75e1650d2d38b3dbe0e5df4a /src/gui
parent3cfddd67df7837ee41ea5057e7aa7e81f61d6cce (diff)
downloadmana-dcea53a7513d11cab73eb8ac8ae2719db72c9be4.tar.gz
mana-dcea53a7513d11cab73eb8ac8ae2719db72c9be4.tar.bz2
mana-dcea53a7513d11cab73eb8ac8ae2719db72c9be4.tar.xz
mana-dcea53a7513d11cab73eb8ac8ae2719db72c9be4.zip
Fixed admin commands.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/chat.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index 0eb250e7..48c84b96 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -258,8 +258,9 @@ ChatWindow::chatSend(const std::string &nick, std::string msg)
MessageOut outMsg(mNetwork);
outMsg.writeInt16(CMSG_CHAT_MESSAGE);
- outMsg.writeInt16(msg.length() + 4);
- outMsg.writeString(msg, msg.length());
+ // Added + 1 in order to let eAthena parse admin commands correctly
+ outMsg.writeInt16(msg.length() + 4 + 1);
+ outMsg.writeString(msg, msg.length() + 1);
}
else if (msg.substr(0, IS_ANNOUNCE_LENGTH) == IS_ANNOUNCE)
{