summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/familyrecv.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/net/eathena/familyrecv.cpp b/src/net/eathena/familyrecv.cpp
index 5a689bb67..995c00a8b 100644
--- a/src/net/eathena/familyrecv.cpp
+++ b/src/net/eathena/familyrecv.cpp
@@ -23,6 +23,8 @@
#include "logger.h"
#include "notifymanager.h"
+#include "being/localplayer.h"
+
#include "enums/resources/notifytypes.h"
#include "net/messagein.h"
@@ -48,8 +50,15 @@ void FamilyRecv::processAskForChild(Net::MessageIn &msg)
void FamilyRecv::processCallPartner(Net::MessageIn &msg)
{
- UNIMPLIMENTEDPACKET;
- msg.readString(24, "name");
+ const std::string name = msg.readString(24, "name");
+ if (localPlayer && name == localPlayer->getName())
+ {
+ NotifyManager::notify(NotifyTypes::CALLED_PARTNER);
+ }
+ else
+ {
+ NotifyManager::notify(NotifyTypes::CALLING_PARTNER, name.c_str());
+ }
}
void FamilyRecv::processDivorced(Net::MessageIn &msg)