summaryrefslogtreecommitdiff
path: root/src/net/eathena/chatrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-01-25 19:52:39 +0300
committerAndrei Karas <akaras@inbox.ru>2019-01-25 19:52:39 +0300
commit5d0e738a90341dff367c49e4dfefe8e6c565882f (patch)
tree0655de31e8305ecff8aade6cf0911c9142fb78ed /src/net/eathena/chatrecv.cpp
parente8c9fc4b089590e02dad6503ab22c5eb95082246 (diff)
downloadplus-5d0e738a90341dff367c49e4dfefe8e6c565882f.tar.gz
plus-5d0e738a90341dff367c49e4dfefe8e6c565882f.tar.bz2
plus-5d0e738a90341dff367c49e4dfefe8e6c565882f.tar.xz
plus-5d0e738a90341dff367c49e4dfefe8e6c565882f.zip
Add packet SMSG_SERVICE_MESSAGE_COLOR 0x0adb
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