diff options
-rw-r--r-- | src/net/eathena/friendshandler.cpp | 13 | ||||
-rw-r--r-- | src/net/eathena/friendshandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/packets.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
4 files changed, 17 insertions, 1 deletions
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 diff --git a/src/net/eathena/friendshandler.h b/src/net/eathena/friendshandler.h index 12a1c1df6..8071bccf1 100644 --- a/src/net/eathena/friendshandler.h +++ b/src/net/eathena/friendshandler.h @@ -41,6 +41,8 @@ class FriendsHandler final : public MessageHandler, void processPlayerOnline(Net::MessageIn &msg); void processFriendsList(Net::MessageIn &msg); + + void processRequestAck(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h index cefeaafaa..849916a43 100644 --- a/src/net/eathena/packets.h +++ b/src/net/eathena/packets.h @@ -83,7 +83,7 @@ int16_t packet_lengths[] = //0 1 2 3 4 5 6 7 8 9 a b c d e f //0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 // #0x0200 - 26, -1, 0, 0, 18, 26, 11, 0, 0, 0, 0, 19, 10, 0, 0, 0, + 26, -1, 0, 0, 18, 26, 11, 0, 0, 36, 0, 19, 10, 0, 0, 0, 22, -1, 16, 0, 42, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 122, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 19, 71, 5, 12, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index d80050079..9854f4ce7 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -289,6 +289,7 @@ #define SMSG_FRIENDS_PLAYER_ONLINE 0x0206 #define SMSG_FRIENDS_LIST 0x0201 +#define SMSG_FRIENDS_REQUEST_ACK 0x0209 /********************************** * Packets from client to server * |