From 8438ad4513e9aa2af4b42317aa05358e36f06e98 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 13 Dec 2014 23:35:11 +0300 Subject: Move processPartyInvited from ea namespace into eathena and tmwa. --- src/net/ea/partyhandler.cpp | 20 -------------------- src/net/ea/partyhandler.h | 2 -- 2 files changed, 22 deletions(-) (limited to 'src/net/ea') diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp index 20bb93a5c..76b08f6bb 100644 --- a/src/net/ea/partyhandler.cpp +++ b/src/net/ea/partyhandler.cpp @@ -83,26 +83,6 @@ void PartyHandler::processPartyCreate(Net::MessageIn &msg) NotifyManager::notify(NotifyTypes::PARTY_CREATED); } -void PartyHandler::processPartyInvited(Net::MessageIn &msg) -{ - const int id = msg.readInt32("account id"); - const std::string partyName = msg.readString(24, "party name"); - std::string nick; - - if (actorManager) - { - const Being *const being = actorManager->findBeing(id); - if (being) - { - if (being->getType() == ActorType::Player) - nick = being->getName(); - } - } - - if (socialWindow) - socialWindow->showPartyInvite(partyName, nick); -} - void PartyHandler::processPartySettingsContinue(const int16_t exp, const int16_t item) { diff --git a/src/net/ea/partyhandler.h b/src/net/ea/partyhandler.h index c415ac4b5..7dc0e6664 100644 --- a/src/net/ea/partyhandler.h +++ b/src/net/ea/partyhandler.h @@ -63,8 +63,6 @@ class PartyHandler notfinal : public Net::PartyHandler static void processPartyCreate(Net::MessageIn &msg); - static void processPartyInvited(Net::MessageIn &msg); - static void processPartyMove(Net::MessageIn &msg); static void processPartyLeave(Net::MessageIn &msg); -- cgit v1.2.3-70-g09d2