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 7d28441b6..fafe3c76b 100644
--- a/src/net/eathena/friendshandler.cpp
+++ b/src/net/eathena/friendshandler.cpp
@@ -40,6 +40,7 @@ FriendsHandler::FriendsHandler() :
SMSG_FRIENDS_PLAYER_ONLINE,
SMSG_FRIENDS_LIST,
SMSG_FRIENDS_REQUEST_ACK,
+ SMSG_FRIENDS_REQUEST,
0
};
handledMessages = _messages;
@@ -62,6 +63,10 @@ void FriendsHandler::handleMessage(Net::MessageIn &msg)
processRequestAck(msg);
break;
+ case SMSG_FRIENDS_REQUEST:
+ processRequest(msg);
+ break;
+
default:
break;
}
@@ -96,6 +101,14 @@ void FriendsHandler::processRequestAck(Net::MessageIn &msg)
msg.readString(24, "name");
}
+void FriendsHandler::processRequest(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+ msg.readInt32("account id");
+ msg.readInt32("char id");
+ msg.readString(24, "name");
+}
+
void FriendsHandler::invite(const std::string &name) const
{
createOutPacket(CMSG_FRIENDS_ADD_PLAYER);