fix(Core/FriendStatus): Alerted when friends log in/out (#4995)
This commit is contained in:
@@ -1031,8 +1031,7 @@ void WorldSession::HandlePlayerLoginFromDB(LoginQueryHolder* holder)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// friend status
|
// friend status
|
||||||
if (AccountMgr::IsGMAccount(GetSecurity())) // pussywizard: only for non-gms
|
sSocialMgr->SendFriendStatus(pCurrChar, FRIEND_ONLINE, pCurrChar->GetGUIDLow(), true);
|
||||||
sSocialMgr->SendFriendStatus(pCurrChar, FRIEND_ONLINE, pCurrChar->GetGUIDLow(), true);
|
|
||||||
|
|
||||||
// Place character in world (and load zone) before some object loading
|
// Place character in world (and load zone) before some object loading
|
||||||
pCurrChar->LoadCorpse();
|
pCurrChar->LoadCorpse();
|
||||||
|
|||||||
@@ -588,8 +588,7 @@ void WorldSession::LogoutPlayer(bool save)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//! Broadcast a logout message to the player's friends
|
//! 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());
|
sSocialMgr->RemovePlayerSocial(_player->GetGUIDLow());
|
||||||
|
|
||||||
//! Call script hook before deletion
|
//! Call script hook before deletion
|
||||||
|
|||||||
Reference in New Issue
Block a user