diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-02-09 00:30:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-02-09 00:30:15 +0300 |
commit | e25a225565c979d96ffcd6e2336f549631c58896 (patch) | |
tree | e36668507500add33227482c017b03c95cc828ad /src/net/eathena/clanrecv.cpp | |
parent | 9ea7e62fdb31a44c1b46c89b66f1f6e4b9a71790 (diff) | |
download | manaplus-e25a225565c979d96ffcd6e2336f549631c58896.tar.gz manaplus-e25a225565c979d96ffcd6e2336f549631c58896.tar.bz2 manaplus-e25a225565c979d96ffcd6e2336f549631c58896.tar.xz manaplus-e25a225565c979d96ffcd6e2336f549631c58896.zip |
Add packet SMSG_CLAN_CHAT 0x098e.
Diffstat (limited to 'src/net/eathena/clanrecv.cpp')
-rw-r--r-- | src/net/eathena/clanrecv.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/clanrecv.cpp b/src/net/eathena/clanrecv.cpp index 57c89419c..acc962c0d 100644 --- a/src/net/eathena/clanrecv.cpp +++ b/src/net/eathena/clanrecv.cpp @@ -61,4 +61,15 @@ void ClanRecv::processClanLeave(Net::MessageIn &msg) UNIMPLEMENTEDPACKET; } +void ClanRecv::processClanChat(Net::MessageIn &msg) +{ + UNIMPLEMENTEDPACKET; + const int chatMsgLength = msg.readInt16("len") - 4 - 24; + if (chatMsgLength <= 0) + return; + msg.readInt16("len"); + msg.readString(24, "player name"); + msg.readString(chatMsgLength, "message"); +} + } // namespace EAthena |