diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs index 022d79d..139e0ca 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs | |||
@@ -33,6 +33,7 @@ using OpenMetaverse.Packets; | |||
33 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
34 | using OpenSim.Framework.Communications; | 34 | using OpenSim.Framework.Communications; |
35 | using OpenSim.Framework.Communications.Cache; | 35 | using OpenSim.Framework.Communications.Cache; |
36 | using OpenSim.Services.Interfaces; | ||
36 | 37 | ||
37 | namespace OpenSim.Region.Framework.Scenes | 38 | namespace OpenSim.Region.Framework.Scenes |
38 | { | 39 | { |
@@ -415,7 +416,24 @@ namespace OpenSim.Region.Framework.Scenes | |||
415 | } | 416 | } |
416 | ); | 417 | ); |
417 | } | 418 | } |
418 | 419 | ||
420 | public void HandleUUIDNameRequest(UUID uuid, IClientAPI remote_client) | ||
421 | { | ||
422 | if (uuid == CommsManager.UserProfileCacheService.LibraryRoot.Owner) | ||
423 | { | ||
424 | remote_client.SendNameReply(uuid, "Mr", "OpenSim"); | ||
425 | } | ||
426 | else | ||
427 | { | ||
428 | string[] names = GetUserNames(uuid); | ||
429 | if (names.Length == 2) | ||
430 | { | ||
431 | remote_client.SendNameReply(uuid, names[0], names[1]); | ||
432 | } | ||
433 | |||
434 | } | ||
435 | } | ||
436 | |||
419 | /// <summary> | 437 | /// <summary> |
420 | /// Handle a fetch inventory request from the client | 438 | /// Handle a fetch inventory request from the client |
421 | /// </summary> | 439 | /// </summary> |