diff options
Diffstat (limited to 'src/server/game/Handlers/ChatHandler.cpp')
-rw-r--r-- | src/server/game/Handlers/ChatHandler.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/server/game/Handlers/ChatHandler.cpp b/src/server/game/Handlers/ChatHandler.cpp index c5a77dbe280..9c1368a7f18 100644 --- a/src/server/game/Handlers/ChatHandler.cpp +++ b/src/server/game/Handlers/ChatHandler.cpp @@ -797,28 +797,6 @@ void WorldSession::SendChatRestricted(ChatRestrictionType restriction) SendPacket(packet.Write()); } -void WorldSession::HandleChatCanLocalWhisperTargetRequest(WorldPackets::Chat::CanLocalWhisperTargetRequest const& canLocalWhisperTargetRequest) -{ - ChatWhisperTargetStatus status = [&] - { - Player* sender = GetPlayer(); - Player* receiver = ObjectAccessor::FindConnectedPlayer(canLocalWhisperTargetRequest.WhisperTarget); - if (!receiver || (!receiver->isAcceptWhispers() && receiver->GetSession()->HasPermission(rbac::RBAC_PERM_CAN_FILTER_WHISPERS) && !receiver->IsInWhisperWhiteList(sender->GetGUID()))) - return ChatWhisperTargetStatus::Offline; - - if (!receiver->IsInWhisperWhiteList(sender->GetGUID()) && !receiver->IsGameMasterAcceptingWhispers()) - if (GetPlayer()->GetEffectiveTeam() != receiver->GetEffectiveTeam() && !HasPermission(rbac::RBAC_PERM_TWO_SIDE_INTERACTION_CHAT)) - return ChatWhisperTargetStatus::WrongFaction; - - return ChatWhisperTargetStatus::CanWhisper; - }(); - - WorldPackets::Chat::CanLocalWhisperTargetResponse canLocalWhisperTargetResponse; - canLocalWhisperTargetResponse.WhisperTarget = canLocalWhisperTargetRequest.WhisperTarget; - canLocalWhisperTargetResponse.Status = status; - SendPacket(canLocalWhisperTargetResponse.Write()); -} - void WorldSession::HandleChatUpdateAADCStatus(WorldPackets::Chat::UpdateAADCStatus const& /*updateAADCStatus*/) { // disabling chat not supported |