From 9ca0103f281a176af021197496fd2bd6f65ba05b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Sep 2014 20:49:37 +0300 Subject: Move processPartyMessage from ea namespace into eathena and tmwa. --- src/net/ea/partyhandler.cpp | 24 ------------------------ src/net/ea/partyhandler.h | 2 -- 2 files changed, 26 deletions(-) (limited to 'src/net/ea') diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp index 60356cf61..4e2fd8e52 100644 --- a/src/net/ea/partyhandler.cpp +++ b/src/net/ea/partyhandler.cpp @@ -295,30 +295,6 @@ void PartyHandler::processPartyUpdateCoords(Net::MessageIn &msg) const } } -void PartyHandler::processPartyMessage(Net::MessageIn &msg) const -{ - const int msgLength = msg.readInt16() - 8; - if (msgLength <= 0) - return; - - const int id = msg.readInt32(); - const std::string chatMsg = msg.readString(msgLength); - - if (Ea::taParty && Ea::partyTab) - { - const PartyMember *const member = Ea::taParty->getMember(id); - if (member) - { - Ea::partyTab->chatLog(member->getName(), chatMsg); - } - else - { - NotifyManager::notify(NotifyTypes::PARTY_UNKNOWN_USER_MSG, - chatMsg); - } - } -} - ChatTab *PartyHandler::getTab() const { return partyTab; diff --git a/src/net/ea/partyhandler.h b/src/net/ea/partyhandler.h index c5cf606b4..7cc5c10bf 100644 --- a/src/net/ea/partyhandler.h +++ b/src/net/ea/partyhandler.h @@ -74,8 +74,6 @@ class PartyHandler notfinal : public Net::PartyHandler virtual void processPartyUpdateCoords(Net::MessageIn &msg) const; - virtual void processPartyMessage(Net::MessageIn &msg) const; - void processPartySettingsContinue(const int16_t exp, const int16_t item); -- cgit v1.2.3-70-g09d2