summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/friendshandler.cpp10
-rw-r--r--src/net/eathena/friendshandler.h4
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 15 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
diff --git a/src/net/eathena/friendshandler.h b/src/net/eathena/friendshandler.h
index f3e9df91f..c0bdd5dc7 100644
--- a/src/net/eathena/friendshandler.h
+++ b/src/net/eathena/friendshandler.h
@@ -39,6 +39,10 @@ class FriendsHandler final : public MessageHandler,
void invite(const std::string &name) const override final;
+ void inviteResponse(const int accountId,
+ const int charId,
+ const bool accept) const override final;
+
protected:
void processPlayerOnline(Net::MessageIn &msg);
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index c4f21b320..b7b86c612 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -480,5 +480,6 @@
#define SMSG_MERCENARY_ACTION 0x029f
#define CMSG_FRIENDS_ADD_PLAYER 0x023b
+#define CMSG_FRIENDS_REQUEST_ACK 0x0208
#endif // NET_EATHENA_PROTOCOL_H