diff options
author | Melanie | 2011-06-13 12:38:17 +0100 |
---|---|---|
committer | Melanie | 2011-06-13 12:38:17 +0100 |
commit | 9b1d3f0c38a79b96ab3bac72c04cfc397b0a499f (patch) | |
tree | 737d2847e8ea312e18ab96df2e2f6728e068381c /OpenSim/Region/CoreModules/Avatar | |
parent | Merge branch 'master' into careminster-presence-refactor (diff) | |
parent | match water color for warp3d map tiler and adjust lighting (diff) | |
download | opensim-SC-9b1d3f0c38a79b96ab3bac72c04cfc397b0a499f.zip opensim-SC-9b1d3f0c38a79b96ab3bac72c04cfc397b0a499f.tar.gz opensim-SC-9b1d3f0c38a79b96ab3bac72c04cfc397b0a499f.tar.bz2 opensim-SC-9b1d3f0c38a79b96ab3bac72c04cfc397b0a499f.tar.xz |
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs index 40506a5..dda67f9 100644 --- a/OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs | |||
@@ -280,11 +280,10 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends | |||
280 | List<string> ids = new List<string>(); | 280 | List<string> ids = new List<string>(); |
281 | foreach (FriendInfo f in kvp.Value) | 281 | foreach (FriendInfo f in kvp.Value) |
282 | ids.Add(f.Friend); | 282 | ids.Add(f.Friend); |
283 | UserAgentServiceConnector uConn = new UserAgentServiceConnector(kvp.Key, false); | 283 | UserAgentServiceConnector uConn = new UserAgentServiceConnector(kvp.Key); |
284 | List<UUID> friendsOnline = uConn.StatusNotification(ids, userID, online); | 284 | List<UUID> friendsOnline = uConn.StatusNotification(ids, userID, online); |
285 | Thread.Sleep(100); | 285 | |
286 | // need to debug this here | 286 | if (online && friendsOnline.Count > 0) |
287 | if (online) | ||
288 | { | 287 | { |
289 | IClientAPI client = LocateClientObject(userID); | 288 | IClientAPI client = LocateClientObject(userID); |
290 | if (client != null) | 289 | if (client != null) |
@@ -305,15 +304,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends | |||
305 | if (Util.ParseUniversalUserIdentifier(fid, out agentID, out url, out first, out last, out tmp)) | 304 | if (Util.ParseUniversalUserIdentifier(fid, out agentID, out url, out first, out last, out tmp)) |
306 | { | 305 | { |
307 | IUserManagement userMan = m_Scenes[0].RequestModuleInterface<IUserManagement>(); | 306 | IUserManagement userMan = m_Scenes[0].RequestModuleInterface<IUserManagement>(); |
308 | userMan.AddUser(agentID, url + ";" + first + " " + last); | 307 | userMan.AddUser(agentID, first, last, url); |
309 | 308 | ||
310 | try // our best | ||
311 | { | ||
312 | string[] parts = userMan.GetUserName(agentID).Split(); | ||
313 | first = parts[0]; | ||
314 | last = parts[1]; | ||
315 | } | ||
316 | catch { } | ||
317 | return true; | 309 | return true; |
318 | } | 310 | } |
319 | return false; | 311 | return false; |