diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-23 00:01:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-23 00:01:11 +0300 |
commit | 003b61e91476ef9cf7275a7a77cdf8a755be6d60 (patch) | |
tree | 6ef55f9e384a03c4264c48bfbe9bb6585629a688 /src/net/eathena/chathandler.cpp | |
parent | 0b15c64164ce6eb923859a5117bfe19af62faa08 (diff) | |
download | manaverse-003b61e91476ef9cf7275a7a77cdf8a755be6d60.tar.gz manaverse-003b61e91476ef9cf7275a7a77cdf8a755be6d60.tar.bz2 manaverse-003b61e91476ef9cf7275a7a77cdf8a755be6d60.tar.xz manaverse-003b61e91476ef9cf7275a7a77cdf8a755be6d60.zip |
Impliment packet SMSG_SCRIPT_MESSAGE.
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r-- | src/net/eathena/chathandler.cpp | 4 |
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 |