diff options
Diffstat (limited to 'src/server/game/Handlers/GroupHandler.cpp')
-rw-r--r-- | src/server/game/Handlers/GroupHandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/Handlers/GroupHandler.cpp b/src/server/game/Handlers/GroupHandler.cpp index 51fbcd05ab3..d5ca7ec9b04 100644 --- a/src/server/game/Handlers/GroupHandler.cpp +++ b/src/server/game/Handlers/GroupHandler.cpp @@ -15,6 +15,7 @@ * with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include "WorldSession.h" #include "Common.h" #include "DatabaseEnv.h" #include "Group.h" @@ -29,7 +30,6 @@ #include "Util.h" #include "World.h" #include "WorldPacket.h" -#include "WorldSession.h" class Aura; @@ -132,7 +132,7 @@ void WorldSession::HandlePartyInviteOpcode(WorldPackets::Party::PartyInviteClien // tell the player that they were invited but it failed as they were already in a group WorldPackets::Party::PartyInvite partyInvite; partyInvite.Initialize(invitingPlayer, packet.ProposedRoles, false); - invitedPlayer->GetSession()->SendPacket(partyInvite.Write()); + invitedPlayer->SendDirectMessage(partyInvite.Write()); } return; @@ -185,7 +185,7 @@ void WorldSession::HandlePartyInviteOpcode(WorldPackets::Party::PartyInviteClien WorldPackets::Party::PartyInvite partyInvite; partyInvite.Initialize(invitingPlayer, packet.ProposedRoles, true); - invitedPlayer->GetSession()->SendPacket(partyInvite.Write()); + invitedPlayer->SendDirectMessage(partyInvite.Write()); SendPartyResult(PARTY_OP_INVITE, invitedPlayer->GetName(), ERR_PARTY_RESULT_OK); } @@ -253,7 +253,7 @@ void WorldSession::HandlePartyInviteResponseOpcode(WorldPackets::Party::PartyInv // report WorldPackets::Party::GroupDecline decline(GetPlayer()->GetName()); - leader->GetSession()->SendPacket(decline.Write()); + leader->SendDirectMessage(decline.Write()); } } |