diff options
author | UbitUmarov | 2018-11-14 17:49:05 +0000 |
---|---|---|
committer | UbitUmarov | 2018-11-14 17:49:05 +0000 |
commit | afb1d6cdd742dd7acfac1b3ac8ac62a523cddb4c (patch) | |
tree | 9fdea0ddb6b8b2a9716c4539dc7d3c59cd1f62bb /OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs | |
parent | take login service out of basicDOSprot (too little, too late) (diff) | |
download | opensim-SC-afb1d6cdd742dd7acfac1b3ac8ac62a523cddb4c.zip opensim-SC-afb1d6cdd742dd7acfac1b3ac8ac62a523cddb4c.tar.gz opensim-SC-afb1d6cdd742dd7acfac1b3ac8ac62a523cddb4c.tar.bz2 opensim-SC-afb1d6cdd742dd7acfac1b3ac8ac62a523cddb4c.tar.xz |
take friends out of basicDOSprot (too little, too late)
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs index fae1e05..c042f65 100644 --- a/OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs | |||
@@ -170,6 +170,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends | |||
170 | // we do this only for the root agent | 170 | // we do this only for the root agent |
171 | if (m_Friends[agentID].Refcount == 1) | 171 | if (m_Friends[agentID].Refcount == 1) |
172 | { | 172 | { |
173 | IUserManagement uMan = m_Scenes[0].RequestModuleInterface<IUserManagement>(); | ||
174 | if(uMan == null) | ||
175 | return true; | ||
173 | // We need to preload the user management cache with the names | 176 | // We need to preload the user management cache with the names |
174 | // of foreign friends, just like we do with SOPs' creators | 177 | // of foreign friends, just like we do with SOPs' creators |
175 | foreach (FriendInfo finfo in m_Friends[agentID].Friends) | 178 | foreach (FriendInfo finfo in m_Friends[agentID].Friends) |
@@ -182,8 +185,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends | |||
182 | string url = string.Empty, first = string.Empty, last = string.Empty, tmp = string.Empty; | 185 | string url = string.Empty, first = string.Empty, last = string.Empty, tmp = string.Empty; |
183 | if (Util.ParseUniversalUserIdentifier(finfo.Friend, out id, out url, out first, out last, out tmp)) | 186 | if (Util.ParseUniversalUserIdentifier(finfo.Friend, out id, out url, out first, out last, out tmp)) |
184 | { | 187 | { |
185 | IUserManagement uMan = m_Scenes[0].RequestModuleInterface<IUserManagement>(); | 188 | // m_log.DebugFormat("[HGFRIENDS MODULE]: caching {0}", finfo.Friend); |
186 | m_log.DebugFormat("[HGFRIENDS MODULE]: caching {0}", finfo.Friend); | ||
187 | uMan.AddUser(id, url + ";" + first + " " + last); | 189 | uMan.AddUser(id, url + ";" + first + " " + last); |
188 | } | 190 | } |
189 | } | 191 | } |