From afae3b08b51c527fb7d52027baacebabf2355c12 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 14 Oct 2014 01:10:32 +0300 Subject: eathena: add partial support for packet SMSG_FRIENDS_REQUEST_ACK 0x0209. --- src/net/eathena/friendshandler.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/net/eathena/friendshandler.cpp') diff --git a/src/net/eathena/friendshandler.cpp b/src/net/eathena/friendshandler.cpp index 0f57e9eea..4914a9a1c 100644 --- a/src/net/eathena/friendshandler.cpp +++ b/src/net/eathena/friendshandler.cpp @@ -36,6 +36,7 @@ FriendsHandler::FriendsHandler() : { SMSG_FRIENDS_PLAYER_ONLINE, SMSG_FRIENDS_LIST, + SMSG_FRIENDS_REQUEST_ACK, 0 }; handledMessages = _messages; @@ -54,6 +55,10 @@ void FriendsHandler::handleMessage(Net::MessageIn &msg) processFriendsList(msg); break; + case SMSG_FRIENDS_REQUEST_ACK: + processRequestAck(msg); + break; + default: break; } @@ -77,4 +82,12 @@ void FriendsHandler::processFriendsList(Net::MessageIn &msg) } } +void FriendsHandler::processRequestAck(Net::MessageIn &msg) +{ + msg.readInt16("type"); + msg.readInt32("account id"); + msg.readInt32("char id"); + msg.readString(24, "name"); +} + } // namespace EAthena -- cgit v1.2.3-70-g09d2