From f6b5e4e208c3020957422c7efdf97ac1d878a012 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Sep 2014 19:54:29 +0300 Subject: Move processPartyInviteResponse from ea namespace into eathena and tmwa. --- src/net/ea/partyhandler.cpp | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'src/net/ea/partyhandler.cpp') diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp index 4e2fd8e52..c048178f8 100644 --- a/src/net/ea/partyhandler.cpp +++ b/src/net/ea/partyhandler.cpp @@ -81,35 +81,6 @@ void PartyHandler::processPartyCreate(Net::MessageIn &msg) const NotifyManager::notify(NotifyTypes::PARTY_CREATED); } -void PartyHandler::processPartyInviteResponse(Net::MessageIn &msg) const -{ - if (!Ea::partyTab) - return; - - const std::string nick = msg.readString(24); - - switch (msg.readUInt8()) - { - case 0: - NotifyManager::notify(NotifyTypes::PARTY_INVITE_ALREADY_MEMBER, - nick); - break; - case 1: - NotifyManager::notify(NotifyTypes::PARTY_INVITE_REFUSED, nick); - break; - case 2: - NotifyManager::notify(NotifyTypes::PARTY_INVITE_DONE, nick); - break; - case 3: - NotifyManager::notify(NotifyTypes::PARTY_INVITE_PARTY_FULL, - nick); - break; - default: - NotifyManager::notify(NotifyTypes::PARTY_INVITE_ERROR, nick); - break; - } -} - void PartyHandler::processPartyInvited(Net::MessageIn &msg) const { const int id = msg.readInt32(); -- cgit v1.2.3-60-g2f50