diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-11 20:08:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-11 20:08:03 +0300 |
commit | 674269cdc7ce138b4c9b89f19ade3186888119cc (patch) | |
tree | 03e467f2d7e656f2ecf408ed5a9aeadbae02476c /src/net/eathena/friendshandler.cpp | |
parent | 248b4b33701fedf1a82aa4d09acc87d794273095 (diff) | |
download | manaplus-674269cdc7ce138b4c9b89f19ade3186888119cc.tar.gz manaplus-674269cdc7ce138b4c9b89f19ade3186888119cc.tar.bz2 manaplus-674269cdc7ce138b4c9b89f19ade3186888119cc.tar.xz manaplus-674269cdc7ce138b4c9b89f19ade3186888119cc.zip |
eathena: add partial support for packet SMSG_FRIENDS_REQUEST 0x0207.
Diffstat (limited to 'src/net/eathena/friendshandler.cpp')
-rw-r--r-- | src/net/eathena/friendshandler.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/friendshandler.cpp b/src/net/eathena/friendshandler.cpp index 7d28441b6..fafe3c76b 100644 --- a/src/net/eathena/friendshandler.cpp +++ b/src/net/eathena/friendshandler.cpp @@ -40,6 +40,7 @@ FriendsHandler::FriendsHandler() : SMSG_FRIENDS_PLAYER_ONLINE, SMSG_FRIENDS_LIST, SMSG_FRIENDS_REQUEST_ACK, + SMSG_FRIENDS_REQUEST, 0 }; handledMessages = _messages; @@ -62,6 +63,10 @@ void FriendsHandler::handleMessage(Net::MessageIn &msg) processRequestAck(msg); break; + case SMSG_FRIENDS_REQUEST: + processRequest(msg); + break; + default: break; } @@ -96,6 +101,14 @@ void FriendsHandler::processRequestAck(Net::MessageIn &msg) msg.readString(24, "name"); } +void FriendsHandler::processRequest(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readInt32("account id"); + msg.readInt32("char id"); + msg.readString(24, "name"); +} + void FriendsHandler::invite(const std::string &name) const { createOutPacket(CMSG_FRIENDS_ADD_PLAYER); |