diff options
Diffstat (limited to 'OpenSim/Framework/Communications/CommunicationsManager.cs')
-rw-r--r-- | OpenSim/Framework/Communications/CommunicationsManager.cs | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/OpenSim/Framework/Communications/CommunicationsManager.cs b/OpenSim/Framework/Communications/CommunicationsManager.cs index e220e17..ac882ba 100644 --- a/OpenSim/Framework/Communications/CommunicationsManager.cs +++ b/OpenSim/Framework/Communications/CommunicationsManager.cs | |||
@@ -44,7 +44,7 @@ namespace OpenSim.Framework.Communications | |||
44 | public IGridServices GridServer; | 44 | public IGridServices GridServer; |
45 | public IInventoryServices InventoryServer; | 45 | public IInventoryServices InventoryServer; |
46 | public IInterRegionCommunications InterRegion; | 46 | public IInterRegionCommunications InterRegion; |
47 | public UserProfileCache UserProfilesCache; | 47 | public UserProfileCache UserProfiles; |
48 | public AssetCache AssetCache; | 48 | public AssetCache AssetCache; |
49 | 49 | ||
50 | public NetworkServersInfo ServersInfo; | 50 | public NetworkServersInfo ServersInfo; |
@@ -52,21 +52,28 @@ namespace OpenSim.Framework.Communications | |||
52 | { | 52 | { |
53 | ServersInfo = serversInfo; | 53 | ServersInfo = serversInfo; |
54 | this.AssetCache = assetCache; | 54 | this.AssetCache = assetCache; |
55 | UserProfilesCache = new UserProfileCache(this); | 55 | UserProfiles = new UserProfileCache(this); |
56 | } | 56 | } |
57 | 57 | ||
58 | #region Packet Handlers | 58 | #region Packet Handlers |
59 | public void HandleUUIDNameRequest(LLUUID uuid, IClientAPI remote_client) | 59 | public void HandleUUIDNameRequest(LLUUID uuid, IClientAPI remote_client) |
60 | { | 60 | { |
61 | UserProfileData profileData = this.UserServer.GetUserProfile(uuid); | 61 | if (uuid == UserProfiles.libraryRoot.agentID) |
62 | if (profileData != null) | ||
63 | { | 62 | { |
64 | LLUUID profileId = profileData.UUID; | 63 | remote_client.SendNameReply(uuid , "Mr" , "OpenSim"); |
65 | string firstname = profileData.username; | 64 | } |
66 | string lastname = profileData.surname; | 65 | else |
66 | { | ||
67 | UserProfileData profileData = this.UserServer.GetUserProfile(uuid); | ||
68 | if (profileData != null) | ||
69 | { | ||
70 | LLUUID profileId = profileData.UUID; | ||
71 | string firstname = profileData.username; | ||
72 | string lastname = profileData.surname; | ||
67 | 73 | ||
68 | remote_client.SendNameReply(profileId, firstname, lastname); | 74 | remote_client.SendNameReply(profileId, firstname, lastname); |
69 | } | 75 | } |
76 | } | ||
70 | } | 77 | } |
71 | 78 | ||
72 | #endregion | 79 | #endregion |