34 TC_LOG_DEBUG(
"network",
"WorldSession::HandleContactListOpcode: Flags: {}", packet.
Flags);
43 TC_LOG_DEBUG(
"network",
"WorldSession::HandleAddFriendOpcode: {} asked to add friend: {}",
47 if (!friendCharacterInfo)
53 auto processFriendRequest = [
this,
55 friendGuid = friendCharacterInfo->
Guid,
57 friendNote = std::move(packet.
Name)]()
87 processFriendRequest();
100 processFriendRequest();
106 [
this, continuation = std::move(processFriendRequest)](
uint32 friendSecurity)
108 if (!AccountMgr::IsPlayerAccount(friendSecurity))
110 sSocialMgr->SendFriendStatus(GetPlayer(), FRIEND_NOT_FOUND, ObjectGuid::Empty);
132 TC_LOG_DEBUG(
"network",
"WorldSession::HandleAddIgnoreOpcode: {} asked to Ignore: {}",
140 ignoreGuid = characterInfo->Guid;
141 if (ignoreGuid ==
GetPlayer()->GetGUID())
143 else if (
GetPlayer()->GetSocial()->HasIgnore(ignoreGuid))
#define TC_LOG_DEBUG(filterType__,...)
bool normalizePlayerName(std::string &name)
Role Based Access Control related classes definition.
FriendsResult
Results of friend related commands.
@ FRIEND_IGNORE_NOT_FOUND
static bool IsPlayerAccount(uint32 gmlevel)
static QueryCallback GetSecurityAsync(uint32 accountId, int32 realmId, std::function< void(uint32)> callback)
T & AddCallback(T &&query)
static ObjectGuid const Empty
std::string ToString() const
static ObjectGuid GetGUID(Object const *o)
void SetFriendNote(ObjectGuid const &guid, std::string const ¬e)
bool HasFriend(ObjectGuid const &friendGuid)
void RemoveFromSocialList(ObjectGuid const &guid, SocialFlag flag)
void SendSocialList(Player *player, uint32 flags)
static uint32 TeamForRace(uint8 race)
bool IsVisibleGloballyFor(Player const *player) const
PlayerSocial * GetSocial()
void HandleDelFriendOpcode(WorldPackets::Social::DelFriend &packet)
std::string GetPlayerInfo() const
void HandleSetContactNotesOpcode(WorldPackets::Social::SetContactNotes &packet)
Player * GetPlayer() const
QueryCallbackProcessor & GetQueryProcessor()
ObjectGuid::LowType m_GUIDLow
bool HasPermission(uint32 permissionId)
void HandleAddIgnoreOpcode(WorldPackets::Social::AddIgnore &packet)
void HandleAddFriendOpcode(WorldPackets::Social::AddFriend &packet)
void HandleDelIgnoreOpcode(WorldPackets::Social::DelIgnore &packet)
void HandleContactListOpcode(WorldPackets::Social::SendContactList &packet)
TC_GAME_API Player * FindPlayer(ObjectGuid const &)
@ RBAC_PERM_ALLOW_GM_FRIEND
@ RBAC_PERM_TWO_SIDE_ADD_FRIEND