diff options
Diffstat (limited to 'src/net/eathena/friendshandler.cpp')
-rw-r--r-- | src/net/eathena/friendshandler.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/friendshandler.cpp b/src/net/eathena/friendshandler.cpp index 6a42f7aa4..fbb505e47 100644 --- a/src/net/eathena/friendshandler.cpp +++ b/src/net/eathena/friendshandler.cpp @@ -97,4 +97,14 @@ void FriendsHandler::invite(const std::string &name) const outMsg.writeString(name, 24, "name"); } +void FriendsHandler::inviteResponse(const int accountId, + const int charId, + const bool accept) const +{ + createOutPacket(CMSG_FRIENDS_REQUEST_ACK); + outMsg.writeInt32(accountId, "account id"); + outMsg.writeInt32(charId, "char id"); + outMsg.writeInt32(accept ? 1 : 0, "result"); +} + } // namespace EAthena |