mantis 8398: fix with previus commits; removed redundante code
parent
2ea5f09ed3
commit
8b5b251d1a
|
@ -2413,15 +2413,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
return string.Empty;
|
return string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if the user is already cached
|
// Check local grid
|
||||||
|
|
||||||
UUID userID = userManager.GetUserIdByName(firstname, lastname);
|
UUID userID = userManager.GetUserIdByName(firstname, lastname);
|
||||||
if (userID != UUID.Zero)
|
if (userID != UUID.Zero)
|
||||||
return userID.ToString();
|
return userID.ToString();
|
||||||
|
|
||||||
// Query for the user
|
// HG ?
|
||||||
|
string realFirstName;
|
||||||
String realFirstName; String realLastName; String serverURI;
|
string realLastName;
|
||||||
|
string serverURI;
|
||||||
if (Util.ParseForeignAvatarName(firstname, lastname, out realFirstName, out realLastName, out serverURI))
|
if (Util.ParseForeignAvatarName(firstname, lastname, out realFirstName, out realLastName, out serverURI))
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -2443,12 +2443,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
// m_log.Warn("[osAvatarName2Key] UserAgentServiceConnector - Unable to connect to destination grid ", e);
|
// m_log.Warn("[osAvatarName2Key] UserAgentServiceConnector - Unable to connect to destination grid ", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
UserAccount account = World.UserAccountService.GetUserAccount(World.RegionInfo.ScopeID, firstname, lastname);
|
|
||||||
if (account != null)
|
|
||||||
return account.PrincipalID.ToString();
|
|
||||||
}
|
|
||||||
|
|
||||||
return UUID.Zero.ToString();
|
return UUID.Zero.ToString();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue