diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-19 23:28:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-19 23:28:10 +0300 |
commit | e7b0eec60bdd4b2a6cd33077c069e90a1aab7ad3 (patch) | |
tree | e8181ee1ab513874cdba1a5e1024738f4cde77cb /src/net/eathena/familyrecv.cpp | |
parent | e29f5cfd16b4566141ee48fa1c58b606e14b66f7 (diff) | |
download | plus-e7b0eec60bdd4b2a6cd33077c069e90a1aab7ad3.tar.gz plus-e7b0eec60bdd4b2a6cd33077c069e90a1aab7ad3.tar.bz2 plus-e7b0eec60bdd4b2a6cd33077c069e90a1aab7ad3.tar.xz plus-e7b0eec60bdd4b2a6cd33077c069e90a1aab7ad3.zip |
Impliment packet SMSG_FAMILY_CALL_PARTNER (hercules).
Diffstat (limited to 'src/net/eathena/familyrecv.cpp')
-rw-r--r-- | src/net/eathena/familyrecv.cpp | 13 |
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) |