aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
diff options
context:
space:
mode:
authorUbitUmarov2018-10-20 14:10:56 +0100
committerUbitUmarov2018-10-20 14:10:56 +0100
commit8b5b251d1ae22656815217d96585c4798796db52 (patch)
treeddbfeeaa1fc25f0902248c0062b41a3c7f46b2ce /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
parentRemove NPCs from UserManagement when removed (diff)
downloadopensim-SC-8b5b251d1ae22656815217d96585c4798796db52.zip
opensim-SC-8b5b251d1ae22656815217d96585c4798796db52.tar.gz
opensim-SC-8b5b251d1ae22656815217d96585c4798796db52.tar.bz2
opensim-SC-8b5b251d1ae22656815217d96585c4798796db52.tar.xz
mantis 8398: fix with previus commits; removed redundante code
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs16
1 files changed, 5 insertions, 11 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 34639b0..20ab7d2 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -2413,15 +2413,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2413 return string.Empty; 2413 return string.Empty;
2414 } 2414 }
2415 2415
2416 // Check if the user is already cached 2416 // Check local grid
2417
2418 UUID userID = userManager.GetUserIdByName(firstname, lastname); 2417 UUID userID = userManager.GetUserIdByName(firstname, lastname);
2419 if (userID != UUID.Zero) 2418 if (userID != UUID.Zero)
2420 return userID.ToString(); 2419 return userID.ToString();
2421 2420
2422 // Query for the user 2421 // HG ?
2423 2422 string realFirstName;
2424 String realFirstName; String realLastName; String serverURI; 2423 string realLastName;
2424 string serverURI;
2425 if (Util.ParseForeignAvatarName(firstname, lastname, out realFirstName, out realLastName, out serverURI)) 2425 if (Util.ParseForeignAvatarName(firstname, lastname, out realFirstName, out realLastName, out serverURI))
2426 { 2426 {
2427 try 2427 try
@@ -2443,12 +2443,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2443 // m_log.Warn("[osAvatarName2Key] UserAgentServiceConnector - Unable to connect to destination grid ", e); 2443 // m_log.Warn("[osAvatarName2Key] UserAgentServiceConnector - Unable to connect to destination grid ", e);
2444 } 2444 }
2445 } 2445 }
2446 else
2447 {
2448 UserAccount account = World.UserAccountService.GetUserAccount(World.RegionInfo.ScopeID, firstname, lastname);
2449 if (account != null)
2450 return account.PrincipalID.ToString();
2451 }
2452 2446
2453 return UUID.Zero.ToString(); 2447 return UUID.Zero.ToString();
2454 } 2448 }