aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 36c1639..0cfa61d 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -35,6 +35,7 @@ using OpenMetaverse;
35using Nini.Config; 35using Nini.Config;
36using OpenSim; 36using OpenSim;
37using OpenSim.Framework; 37using OpenSim.Framework;
38using OpenSim.Framework.Communications.Cache;
38using OpenSim.Framework.Console; 39using OpenSim.Framework.Console;
39using OpenSim.Region.Framework.Interfaces; 40using OpenSim.Region.Framework.Interfaces;
40using OpenSim.Region.Framework.Scenes; 41using OpenSim.Region.Framework.Scenes;
@@ -1348,15 +1349,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1348 { 1349 {
1349 CheckThreatLevel(ThreatLevel.Low, "osAvatarName2Key"); 1350 CheckThreatLevel(ThreatLevel.Low, "osAvatarName2Key");
1350 1351
1351 UserProfileData UserProfile = World.CommsManager.UserService 1352 CachedUserInfo userInfo = World.CommsManager.UserProfileCacheService.GetUserDetails(firstname, lastname);
1352 .GetUserProfile(firstname, lastname); 1353
1353 if (UserProfile==null) 1354 if (null == userInfo)
1354 { 1355 {
1355 return UUID.Zero.ToString(); 1356 return UUID.Zero.ToString();
1356 } 1357 }
1357 else 1358 else
1358 { 1359 {
1359 return UserProfile.ID.ToString(); 1360 return userInfo.UserProfile.ID.ToString();
1360 } 1361 }
1361 } 1362 }
1362 1363