From 003b61e91476ef9cf7275a7a77cdf8a755be6d60 Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Sun, 23 Aug 2015 00:01:11 +0300
Subject: Impliment packet SMSG_SCRIPT_MESSAGE.

---
 src/net/eathena/chathandler.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/net')

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
-- 
cgit v1.2.3-70-g09d2