diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-17 21:53:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-17 21:53:11 +0300 |
commit | 3c7ea10478b5cfa3ca6433e096630c3cb35b5f68 (patch) | |
tree | 3ff368ba4a69c9583ea08c6e7c2a2850ec28d2e0 /src/net/eathena/chathandler.cpp | |
parent | 67d2b4560247210d6b20d36ba725be6bf5d4fd53 (diff) | |
download | mv-3c7ea10478b5cfa3ca6433e096630c3cb35b5f68.tar.gz mv-3c7ea10478b5cfa3ca6433e096630c3cb35b5f68.tar.bz2 mv-3c7ea10478b5cfa3ca6433e096630c3cb35b5f68.tar.xz mv-3c7ea10478b5cfa3ca6433e096630c3cb35b5f68.zip |
eathena: add partial support for packet SMSG_BATTLE_CHAT_MESSAGE 0x02dc.
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r-- | src/net/eathena/chathandler.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index e8d857cf2..1748f0c7a 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -89,6 +89,7 @@ ChatHandler::ChatHandler() : SMSG_MANNER_MESSAGE, SMSG_CHAT_SILENCE, SMSG_CHAT_TALKIE_BOX, + SMSG_BATTLE_CHAT_MESSAGE, 0 }; handledMessages = _messages; @@ -221,6 +222,10 @@ void ChatHandler::handleMessage(Net::MessageIn &msg) processChatTalkieBox(msg); break; + case SMSG_BATTLE_CHAT_MESSAGE: + processBattleChatMessage(msg); + break; + default: break; } @@ -912,4 +917,14 @@ void ChatHandler::processChatTalkieBox(Net::MessageIn &msg) msg.readString(80, "message"); } +void ChatHandler::processBattleChatMessage(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + const int sz = msg.readInt16("len") - 24 - 8; + msg.readInt32("account id"); + msg.readString(24, "nick"); + msg.readString(sz, "message"); +} + + } // namespace EAthena |