summaryrefslogtreecommitdiff
path: root/src/net/eathena/friendshandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-14 01:10:32 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-14 01:10:32 +0300
commitafae3b08b51c527fb7d52027baacebabf2355c12 (patch)
tree82be91fa2546a8ae4f5280ee37f1197286df725f /src/net/eathena/friendshandler.cpp
parentf676561f759c2be6e51c68b085b7d01ee98fc0d4 (diff)
downloadmv-afae3b08b51c527fb7d52027baacebabf2355c12.tar.gz
mv-afae3b08b51c527fb7d52027baacebabf2355c12.tar.bz2
mv-afae3b08b51c527fb7d52027baacebabf2355c12.tar.xz
mv-afae3b08b51c527fb7d52027baacebabf2355c12.zip
eathena: add partial support for packet SMSG_FRIENDS_REQUEST_ACK 0x0209.
Diffstat (limited to 'src/net/eathena/friendshandler.cpp')
-rw-r--r--src/net/eathena/friendshandler.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/friendshandler.cpp b/src/net/eathena/friendshandler.cpp
index 0f57e9eea..4914a9a1c 100644
--- a/src/net/eathena/friendshandler.cpp
+++ b/src/net/eathena/friendshandler.cpp
@@ -36,6 +36,7 @@ FriendsHandler::FriendsHandler() :
{
SMSG_FRIENDS_PLAYER_ONLINE,
SMSG_FRIENDS_LIST,
+ SMSG_FRIENDS_REQUEST_ACK,
0
};
handledMessages = _messages;
@@ -54,6 +55,10 @@ void FriendsHandler::handleMessage(Net::MessageIn &msg)
processFriendsList(msg);
break;
+ case SMSG_FRIENDS_REQUEST_ACK:
+ processRequestAck(msg);
+ break;
+
default:
break;
}
@@ -77,4 +82,12 @@ void FriendsHandler::processFriendsList(Net::MessageIn &msg)
}
}
+void FriendsHandler::processRequestAck(Net::MessageIn &msg)
+{
+ msg.readInt16("type");
+ msg.readInt32("account id");
+ msg.readInt32("char id");
+ msg.readString(24, "name");
+}
+
} // namespace EAthena