diff options
author | Melanie Thielker | 2008-08-16 02:00:36 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-08-16 02:00:36 +0000 |
commit | 328ab79b783d4beaa5f954918e3b306950153c1a (patch) | |
tree | e2bf03b6cc7c6514a9c83968a716648394602e14 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |
parent | Perils of copypaste. Missing references. (diff) | |
download | opensim-SC_OLD-328ab79b783d4beaa5f954918e3b306950153c1a.zip opensim-SC_OLD-328ab79b783d4beaa5f954918e3b306950153c1a.tar.gz opensim-SC_OLD-328ab79b783d4beaa5f954918e3b306950153c1a.tar.bz2 opensim-SC_OLD-328ab79b783d4beaa5f954918e3b306950153c1a.tar.xz |
Refactor a lot of direct calls to OGS1 to use the cached version instead.
Scripts can now no longer DOS the user server and there are a lot fewer
gratuitious lookups of user profile data.
Diffstat (limited to '')
-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 15793e4..5ab6c4d 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -633,10 +633,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
633 | public string resolveName(LLUUID objecUUID) | 633 | public string resolveName(LLUUID objecUUID) |
634 | { | 634 | { |
635 | // try avatar username surname | 635 | // try avatar username surname |
636 | UserProfileData profile = World.CommsManager.UserService.GetUserProfile(objecUUID); | 636 | CachedUserInfo profile = World.CommsManager.UserProfileCacheService.GetUserDetails(objecUUID); |
637 | if (profile != null) | 637 | if (profile != null && profile.UserProfile != null) |
638 | { | 638 | { |
639 | string avatarname = profile.FirstName + " " + profile.SurName; | 639 | string avatarname = profile.UserProfile.FirstName + " " + profile.UserProfile.SurName; |
640 | return avatarname; | 640 | return avatarname; |
641 | } | 641 | } |
642 | // try an scene object | 642 | // try an scene object |