From e29f5cfd16b4566141ee48fa1c58b606e14b66f7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 19 Mar 2016 19:57:13 +0300 Subject: Impliment packet SMSG_FAMILY_DIVORCED (hercules). --- src/net/eathena/familyrecv.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/net') diff --git a/src/net/eathena/familyrecv.cpp b/src/net/eathena/familyrecv.cpp index 8964d0afe..5a689bb67 100644 --- a/src/net/eathena/familyrecv.cpp +++ b/src/net/eathena/familyrecv.cpp @@ -21,6 +21,9 @@ #include "net/eathena/familyrecv.h" #include "logger.h" +#include "notifymanager.h" + +#include "enums/resources/notifytypes.h" #include "net/messagein.h" @@ -51,8 +54,8 @@ void FamilyRecv::processCallPartner(Net::MessageIn &msg) void FamilyRecv::processDivorced(Net::MessageIn &msg) { - UNIMPLIMENTEDPACKET; - msg.readString(24, "name"); + const std::string name = msg.readString(24, "name"); + NotifyManager::notify(NotifyTypes::DIVORCED, name.c_str()); } void FamilyRecv::processAskForChildReply(Net::MessageIn &msg) -- cgit v1.2.3-70-g09d2