diff options
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 |