mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
Merge branch 'master' into careminster
Conflicts: OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
This commit is contained in:
@@ -685,7 +685,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
||||
//
|
||||
|
||||
// Try local
|
||||
if (LocalFriendshipTerminated(exfriendID))
|
||||
if (LocalFriendshipTerminated(client.AgentId, exfriendID))
|
||||
return;
|
||||
|
||||
PresenceInfo[] friendSessions = PresenceService.GetAgents(new string[] { exfriendID.ToString() });
|
||||
@@ -827,13 +827,13 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool LocalFriendshipTerminated(UUID exfriendID)
|
||||
public bool LocalFriendshipTerminated(UUID userID, UUID exfriendID)
|
||||
{
|
||||
IClientAPI friendClient = LocateClientObject(exfriendID);
|
||||
if (friendClient != null)
|
||||
{
|
||||
// the friend in this sim as root agent
|
||||
friendClient.SendTerminateFriend(exfriendID);
|
||||
friendClient.SendTerminateFriend(userID);
|
||||
// update local cache
|
||||
RecacheFriends(friendClient);
|
||||
// we're done
|
||||
|
||||
@@ -193,7 +193,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
||||
if (!UUID.TryParse(request["ToID"].ToString(), out toID))
|
||||
return FailureResult();
|
||||
|
||||
if (m_FriendsModule.LocalFriendshipTerminated(toID))
|
||||
if (m_FriendsModule.LocalFriendshipTerminated(fromID, toID))
|
||||
return SuccessResult();
|
||||
|
||||
return FailureResult();
|
||||
|
||||
Reference in New Issue
Block a user