diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 2bfd3fb..876668c 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -849,10 +849,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
849 | public string resolveName(UUID objecUUID) | 849 | public string resolveName(UUID objecUUID) |
850 | { | 850 | { |
851 | // try avatar username surname | 851 | // try avatar username surname |
852 | CachedUserInfo profile = World.CommsManager.UserProfileCacheService.GetUserDetails(objecUUID); | 852 | UserAccount account = World.UserAccountService.GetUserAccount(World.RegionInfo.ScopeID, objecUUID); |
853 | if (profile != null && profile.UserProfile != null) | 853 | if (account != null) |
854 | { | 854 | { |
855 | string avatarname = profile.UserProfile.FirstName + " " + profile.UserProfile.SurName; | 855 | string avatarname = account.Name; |
856 | return avatarname; | 856 | return avatarname; |
857 | } | 857 | } |
858 | // try an scene object | 858 | // try an scene object |