fix(Core/FriendStatus): Alerted when friends log in/out (#4995)

This commit is contained in:
r0m1ntik
2021-04-06 14:17:07 +02:00
committed by GitHub
parent eea37f1213
commit 2f2d84ac5c
2 changed files with 2 additions and 4 deletions

View File

@@ -588,8 +588,7 @@ void WorldSession::LogoutPlayer(bool save)
}
//! Broadcast a logout message to the player's friends
if (AccountMgr::IsGMAccount(GetSecurity())) // pussywizard: only for non-gms
sSocialMgr->SendFriendStatus(_player, FRIEND_OFFLINE, _player->GetGUIDLow(), true);
sSocialMgr->SendFriendStatus(_player, FRIEND_OFFLINE, _player->GetGUIDLow(), true);
sSocialMgr->RemovePlayerSocial(_player->GetGUIDLow());
//! Call script hook before deletion