aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar
diff options
context:
space:
mode:
authorMelanie2009-11-05 17:29:52 +0000
committerMelanie2009-11-05 17:29:52 +0000
commitec0d5b408adad5c806cad7b9cbce3ca37069dcaf (patch)
tree4910e859b1537cf472a5435c2c8f03dddc335dfd /OpenSim/Region/CoreModules/Avatar
parentRemove a spammy debug message from friends list check in the perms module. (diff)
downloadopensim-SC-ec0d5b408adad5c806cad7b9cbce3ca37069dcaf.zip
opensim-SC-ec0d5b408adad5c806cad7b9cbce3ca37069dcaf.tar.gz
opensim-SC-ec0d5b408adad5c806cad7b9cbce3ca37069dcaf.tar.bz2
opensim-SC-ec0d5b408adad5c806cad7b9cbce3ca37069dcaf.tar.xz
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.
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
index c6fd72e..bb4e032 100644
--- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
@@ -1114,6 +1114,18 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
1114 { 1114 {
1115 ((Scene)remoteClient.Scene).CommsManager.UpdateUserFriendPerms(requester, target, (uint)rights); 1115 ((Scene)remoteClient.Scene).CommsManager.UpdateUserFriendPerms(requester, target, (uint)rights);
1116 } 1116 }
1117
1118 public List<FriendListItem> GetUserFriends(UUID agentID)
1119 {
1120 List<FriendListItem> fl;
1121 lock (m_friendLists)
1122 {
1123 fl = (List<FriendListItem>)m_friendLists.Get(agentID.ToString(),
1124 m_initialScene.GetFriendList);
1125 }
1126
1127 return fl;
1128 }
1117 } 1129 }
1118 #endregion 1130 #endregion
1119} 1131}