summaryrefslogtreecommitdiff
path: root/src/net/eathena/friendshandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-14 01:52:32 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-14 01:52:32 +0300
commit633ec96c9a4403eeacdd91fdb5302f8989933265 (patch)
tree42ebebd0924fcb0c80b356c3eb2c439d9685f64d /src/net/eathena/friendshandler.cpp
parent90db2a6cd38c21648f6de6bdfad1e04654ff61da (diff)
downloadplus-633ec96c9a4403eeacdd91fdb5302f8989933265.tar.gz
plus-633ec96c9a4403eeacdd91fdb5302f8989933265.tar.bz2
plus-633ec96c9a4403eeacdd91fdb5302f8989933265.tar.xz
plus-633ec96c9a4403eeacdd91fdb5302f8989933265.zip
eathena: add packet CMSG_FRIENDS_REQUEST_ACK 0x0208.
Diffstat (limited to 'src/net/eathena/friendshandler.cpp')
-rw-r--r--src/net/eathena/friendshandler.cpp10
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