summaryrefslogtreecommitdiff
path: root/src/net/eathena/friendshandler.cpp
diff options
context:
space:
mode:
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