aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
authorMelanie2011-11-14 20:03:47 +0000
committerMelanie2011-11-14 20:03:47 +0000
commitafca742392e30748de13a125f932046949af0bcb (patch)
tree34e9dd92533abe446e356d9fb1ad8625cb28c9bc /OpenSim/Data
parentMerge branch 'master' into bigmerge (diff)
parentminor: remove some mono compiler warnings (diff)
downloadopensim-SC_OLD-afca742392e30748de13a125f932046949af0bcb.zip
opensim-SC_OLD-afca742392e30748de13a125f932046949af0bcb.tar.gz
opensim-SC_OLD-afca742392e30748de13a125f932046949af0bcb.tar.bz2
opensim-SC_OLD-afca742392e30748de13a125f932046949af0bcb.tar.xz
Merge branch 'master' into bigmerge
Conflicts: OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
Diffstat (limited to 'OpenSim/Data')
-rw-r--r--OpenSim/Data/Null/NullFriendsData.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Data/Null/NullFriendsData.cs b/OpenSim/Data/Null/NullFriendsData.cs
index d90788a..0a4b242 100644
--- a/OpenSim/Data/Null/NullFriendsData.cs
+++ b/OpenSim/Data/Null/NullFriendsData.cs
@@ -56,13 +56,21 @@ namespace OpenSim.Data.Null
56 /// <returns></returns> 56 /// <returns></returns>
57 public FriendsData[] GetFriends(string userID) 57 public FriendsData[] GetFriends(string userID)
58 { 58 {
59 List<FriendsData> lst = m_Data.FindAll(delegate (FriendsData fdata) 59 List<FriendsData> lst = m_Data.FindAll(fdata =>
60 { 60 {
61 return fdata.PrincipalID == userID.ToString(); 61 return fdata.PrincipalID == userID.ToString();
62 }); 62 });
63 63
64 if (lst != null) 64 if (lst != null)
65 {
66 lst.ForEach(f =>
67 {
68 FriendsData f2 = m_Data.Find(candidateF2 => f.Friend == candidateF2.PrincipalID);
69 if (f2 != null) { f.Data["TheirFlags"] = f2.Data["Flags"]; }
70 });
71
65 return lst.ToArray(); 72 return lst.ToArray();
73 }
66 74
67 return new FriendsData[0]; 75 return new FriendsData[0];
68 } 76 }