* find user on save-inv

0.6.0-stable
Justin Clarke Casey 2008-07-29 18:11:58 +00:00
parent aa59dfb1d2
commit d13c9161c9
2 changed files with 27 additions and 17 deletions

View File

@ -822,22 +822,6 @@ namespace OpenSim
} }
} }
/// <summary>
/// Save inventory to a file.
/// </summary>
/// <param name="cmdparams"></param>
protected void SaveInv(string[] cmdparams)
{
m_log.Error("[CONSOLE]: This has not been implemented yet!");
// CachedUserInfo userInfo = CommsManager.UserProfileCacheService.GetUserDetails();
// if (userInfo == null)
// {
// m_log.Error("[AGENT INVENTORY]: Failed to find user " + oldAgentID.ToString());
// return;
// }
}
private static string CombineParams(string[] commandParams, int pos) private static string CombineParams(string[] commandParams, int pos)
{ {
string result = String.Empty; string result = String.Empty;

View File

@ -664,6 +664,32 @@ namespace OpenSim
#endregion #endregion
/// <summary>
/// Save inventory to a file.
/// </summary>
/// <param name="cmdparams"></param>
protected void SaveInv(string[] cmdparams)
{
m_log.Error("[CONSOLE]: This has not been implemented yet!");
if (cmdparams.Length < 3)
{
m_log.Error("[CONSOLE]: usage is save-inv <first name> <last name> <inventory path>");
return;
}
string firstName = cmdparams[0];
string lastName = cmdparams[1];
string invPath = cmdparams[2];
UserProfileData userProfile = m_commsManager.UserService.GetUserProfile(firstName, lastName);
if (null == userProfile)
{
m_log.ErrorFormat("[CONSOLE]: Failed to find user {0} {1}", firstName, lastName);
return;
}
}
/// <summary> /// <summary>
/// Performs any last-minute sanity checking and shuts down the region server /// Performs any last-minute sanity checking and shuts down the region server
/// </summary> /// </summary>