summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-23 00:01:11 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-23 00:01:11 +0300
commit003b61e91476ef9cf7275a7a77cdf8a755be6d60 (patch)
tree6ef55f9e384a03c4264c48bfbe9bb6585629a688 /src/net
parent0b15c64164ce6eb923859a5117bfe19af62faa08 (diff)
downloadmv-003b61e91476ef9cf7275a7a77cdf8a755be6d60.tar.gz
mv-003b61e91476ef9cf7275a7a77cdf8a755be6d60.tar.bz2
mv-003b61e91476ef9cf7275a7a77cdf8a755be6d60.tar.xz
mv-003b61e91476ef9cf7275a7a77cdf8a755be6d60.zip
Impliment packet SMSG_SCRIPT_MESSAGE.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/chathandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp
index 6b7f9d9aa..c37e18f90 100644
--- a/src/net/eathena/chathandler.cpp
+++ b/src/net/eathena/chathandler.cpp
@@ -1140,10 +1140,10 @@ void ChatHandler::processBattleChatMessage(Net::MessageIn &msg)
void ChatHandler::processScriptMessage(Net::MessageIn &msg)
{
- UNIMPLIMENTEDPACKET;
const int sz = msg.readInt16("len") - 8;
msg.readBeingId("being id");
- msg.readString(sz, "message");
+ const std::string message = msg.readString(sz, "message");
+ localChatTab->chatLog(message, ChatMsgType::BY_SERVER);
}
void ChatHandler::leaveChatRoom() const