summaryrefslogtreecommitdiff
path: root/src/net/eathena/chatrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-04-06 23:22:34 +0300
committerAndrei Karas <akaras@inbox.ru>2018-04-06 23:22:34 +0300
commit2bd8b34e2cc809a0adbebdadf5a777fbb57cf5a8 (patch)
tree8cddb61017d4587ed201fdf4b53e8bbf3ca02d9c /src/net/eathena/chatrecv.cpp
parentfbe1f9697c8a4f675d21c35a54d923fecd7af12e (diff)
downloadmv-2bd8b34e2cc809a0adbebdadf5a777fbb57cf5a8.tar.gz
mv-2bd8b34e2cc809a0adbebdadf5a777fbb57cf5a8.tar.bz2
mv-2bd8b34e2cc809a0adbebdadf5a777fbb57cf5a8.tar.xz
mv-2bd8b34e2cc809a0adbebdadf5a777fbb57cf5a8.zip
Add packet SMSG_FORMAT_COLOR_MESSAGE 0x09cd.
Diffstat (limited to 'src/net/eathena/chatrecv.cpp')
-rw-r--r--src/net/eathena/chatrecv.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/chatrecv.cpp b/src/net/eathena/chatrecv.cpp
index faac6f014..12ebe2ee9 100644
--- a/src/net/eathena/chatrecv.cpp
+++ b/src/net/eathena/chatrecv.cpp
@@ -173,6 +173,16 @@ void ChatRecv::processFormatMessageNumber(Net::MessageIn &msg)
processChatContinue(chatMsg, ChatMsgType::BY_SERVER);
}
+void ChatRecv::processFormatColor(Net::MessageIn &msg)
+{
+ const int msgId = msg.readInt16("msg id");
+ msg.readInt32("color");
+ // +++ here need load message from configuration file
+ const std::string chatMsg = strprintf(
+ "Message #%d", msgId);
+ processChatContinue(chatMsg, ChatMsgType::BY_SERVER);
+}
+
void ChatRecv::processFormatMessageString(Net::MessageIn &msg)
{
const int strLen = msg.readInt16("len") - 6;