summaryrefslogtreecommitdiff
path: root/src/net/eathena/chatrecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/chatrecv.cpp')
-rw-r--r--src/net/eathena/chatrecv.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/chatrecv.cpp b/src/net/eathena/chatrecv.cpp
index f4c41d120..318fe7c30 100644
--- a/src/net/eathena/chatrecv.cpp
+++ b/src/net/eathena/chatrecv.cpp
@@ -822,4 +822,15 @@ void ChatRecv::processScriptMessage(Net::MessageIn &msg)
TryRemoveColors_true);
}
+void ChatRecv::processServiceMessageColor(Net::MessageIn &msg)
+{
+ const int sz = msg.readInt16("len") - 8;
+ msg.readInt32("color");
+ const std::string message = msg.readString(sz, "message");
+ localChatTab->chatLog(message,
+ ChatMsgType::BY_SERVER,
+ IgnoreRecord_false,
+ TryRemoveColors_true);
+}
+
} // namespace EAthena