diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-01-25 19:52:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-01-25 19:52:39 +0300 |
commit | 5d0e738a90341dff367c49e4dfefe8e6c565882f (patch) | |
tree | 0655de31e8305ecff8aade6cf0911c9142fb78ed /src/net/eathena/chatrecv.cpp | |
parent | e8c9fc4b089590e02dad6503ab22c5eb95082246 (diff) | |
download | manaplus-5d0e738a90341dff367c49e4dfefe8e6c565882f.tar.gz manaplus-5d0e738a90341dff367c49e4dfefe8e6c565882f.tar.bz2 manaplus-5d0e738a90341dff367c49e4dfefe8e6c565882f.tar.xz manaplus-5d0e738a90341dff367c49e4dfefe8e6c565882f.zip |
Add packet SMSG_SERVICE_MESSAGE_COLOR 0x0adb
Diffstat (limited to 'src/net/eathena/chatrecv.cpp')
-rw-r--r-- | src/net/eathena/chatrecv.cpp | 11 |
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 |