Change the permissions module to use the friend list cache already in the

friends module instead of requesting the entire friends list over the
network each time a prim is touched.
This commit is contained in:
Melanie
2009-11-05 17:29:52 +00:00
parent b098572525
commit ec0d5b408a
3 changed files with 29 additions and 2 deletions

View File

@@ -1114,6 +1114,18 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
{
((Scene)remoteClient.Scene).CommsManager.UpdateUserFriendPerms(requester, target, (uint)rights);
}
public List<FriendListItem> GetUserFriends(UUID agentID)
{
List<FriendListItem> fl;
lock (m_friendLists)
{
fl = (List<FriendListItem>)m_friendLists.Get(agentID.ToString(),
m_initialScene.GetFriendList);
}
return fl;
}
}
#endregion
}