From d13c9161c959fd151a620cd77ae4d2acbbdb6177 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 29 Jul 2008 18:11:58 +0000 Subject: * find user on save-inv --- OpenSim/Region/Application/OpenSim.cs | 18 +----------------- OpenSim/Region/Application/OpenSimBase.cs | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 17 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 622573c..714a777 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs @@ -820,23 +820,7 @@ namespace OpenSim { m_sceneManager.SaveCurrentSceneToArchive(DEFAULT_OAR_BACKUP_FILENAME); } - } - - /// - /// Save inventory to a file. - /// - /// - 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) { diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index aa641e1..18edeac 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs @@ -663,6 +663,32 @@ namespace OpenSim } #endregion + + /// + /// Save inventory to a file. + /// + /// + 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 "); + 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; + } + } /// /// Performs any last-minute sanity checking and shuts down the region server -- cgit v1.1