diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-14 12:39:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-14 12:39:55 +0300 |
commit | 470f883b5701b74ae956f02f1b91ac7e584776b2 (patch) | |
tree | 6a0d16edc598c3e95a499f1ac8da20acc2bf1e20 /src/net/eathena | |
parent | 633ec96c9a4403eeacdd91fdb5302f8989933265 (diff) | |
download | manaverse-470f883b5701b74ae956f02f1b91ac7e584776b2.tar.gz manaverse-470f883b5701b74ae956f02f1b91ac7e584776b2.tar.bz2 manaverse-470f883b5701b74ae956f02f1b91ac7e584776b2.tar.xz manaverse-470f883b5701b74ae956f02f1b91ac7e584776b2.zip |
eathena: add packet CMSG_FRIENDS_DELETE_PLAYER 0x020a.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/friendshandler.cpp | 7 | ||||
-rw-r--r-- | src/net/eathena/friendshandler.h | 3 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/friendshandler.cpp b/src/net/eathena/friendshandler.cpp index fbb505e47..783ad1109 100644 --- a/src/net/eathena/friendshandler.cpp +++ b/src/net/eathena/friendshandler.cpp @@ -107,4 +107,11 @@ void FriendsHandler::inviteResponse(const int accountId, outMsg.writeInt32(accept ? 1 : 0, "result"); } +void FriendsHandler::remove(const int accountId, const int charId) const +{ + createOutPacket(CMSG_FRIENDS_DELETE_PLAYER); + outMsg.writeInt32(accountId, "account id"); + outMsg.writeInt32(charId, "char id"); +} + } // namespace EAthena diff --git a/src/net/eathena/friendshandler.h b/src/net/eathena/friendshandler.h index c0bdd5dc7..3b6dd4e45 100644 --- a/src/net/eathena/friendshandler.h +++ b/src/net/eathena/friendshandler.h @@ -43,6 +43,9 @@ class FriendsHandler final : public MessageHandler, const int charId, const bool accept) const override final; + void remove(const int accountId, + const int charId) const override final; + protected: void processPlayerOnline(Net::MessageIn &msg); diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index b7b86c612..c2a6dfbfc 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -481,5 +481,6 @@ #define CMSG_FRIENDS_ADD_PLAYER 0x023b #define CMSG_FRIENDS_REQUEST_ACK 0x0208 +#define CMSG_FRIENDS_DELETE_PLAYER 0x020a #endif // NET_EATHENA_PROTOCOL_H |