From dcea53a7513d11cab73eb8ac8ae2719db72c9be4 Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Tue, 11 Sep 2007 07:30:39 +0000 Subject: Fixed admin commands. --- ChangeLog | 6 +++++- src/gui/chat.cpp | 5 +++-- tmw.cbp | 20 -------------------- 3 files changed, 8 insertions(+), 23 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5252b5c5..4c09aaab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,8 @@ -2007-09-08 Philipp Sehmisch +2007-09-11 Eugenio Favalli + + * src/gui/chat.cpp, tmw.cbp: Fixed admin commands. + +2007-09-08 Philipp Sehmisch * data/graphics/particles/aniblaze.png, data/graphics/particles/cookingfire.particle.xml, 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) { diff --git a/tmw.cbp b/tmw.cbp index 11445596..f1045b67 100644 --- a/tmw.cbp +++ b/tmw.cbp @@ -1173,26 +1173,6 @@