diff options
author | Justin Clarke Casey | 2008-07-29 18:11:58 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-07-29 18:11:58 +0000 |
commit | d13c9161c959fd151a620cd77ae4d2acbbdb6177 (patch) | |
tree | 2994219af193f23009888337c9d7c8d5db5a26f2 /OpenSim/Region | |
parent | * minor: route create user through underlying super class method rather than ... (diff) | |
download | opensim-SC-d13c9161c959fd151a620cd77ae4d2acbbdb6177.zip opensim-SC-d13c9161c959fd151a620cd77ae4d2acbbdb6177.tar.gz opensim-SC-d13c9161c959fd151a620cd77ae4d2acbbdb6177.tar.bz2 opensim-SC-d13c9161c959fd151a620cd77ae4d2acbbdb6177.tar.xz |
* find user on save-inv
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 18 | ||||
-rw-r--r-- | OpenSim/Region/Application/OpenSimBase.cs | 26 |
2 files changed, 27 insertions, 17 deletions
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 | |||
820 | { | 820 | { |
821 | m_sceneManager.SaveCurrentSceneToArchive(DEFAULT_OAR_BACKUP_FILENAME); | 821 | m_sceneManager.SaveCurrentSceneToArchive(DEFAULT_OAR_BACKUP_FILENAME); |
822 | } | 822 | } |
823 | } | 823 | } |
824 | |||
825 | /// <summary> | ||
826 | /// Save inventory to a file. | ||
827 | /// </summary> | ||
828 | /// <param name="cmdparams"></param> | ||
829 | protected void SaveInv(string[] cmdparams) | ||
830 | { | ||
831 | m_log.Error("[CONSOLE]: This has not been implemented yet!"); | ||
832 | |||
833 | // CachedUserInfo userInfo = CommsManager.UserProfileCacheService.GetUserDetails(); | ||
834 | // if (userInfo == null) | ||
835 | // { | ||
836 | // m_log.Error("[AGENT INVENTORY]: Failed to find user " + oldAgentID.ToString()); | ||
837 | // return; | ||
838 | // } | ||
839 | } | ||
840 | 824 | ||
841 | private static string CombineParams(string[] commandParams, int pos) | 825 | private static string CombineParams(string[] commandParams, int pos) |
842 | { | 826 | { |
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 | |||
663 | } | 663 | } |
664 | 664 | ||
665 | #endregion | 665 | #endregion |
666 | |||
667 | /// <summary> | ||
668 | /// Save inventory to a file. | ||
669 | /// </summary> | ||
670 | /// <param name="cmdparams"></param> | ||
671 | protected void SaveInv(string[] cmdparams) | ||
672 | { | ||
673 | m_log.Error("[CONSOLE]: This has not been implemented yet!"); | ||
674 | |||
675 | if (cmdparams.Length < 3) | ||
676 | { | ||
677 | m_log.Error("[CONSOLE]: usage is save-inv <first name> <last name> <inventory path>"); | ||
678 | return; | ||
679 | } | ||
680 | |||
681 | string firstName = cmdparams[0]; | ||
682 | string lastName = cmdparams[1]; | ||
683 | string invPath = cmdparams[2]; | ||
684 | |||
685 | UserProfileData userProfile = m_commsManager.UserService.GetUserProfile(firstName, lastName); | ||
686 | if (null == userProfile) | ||
687 | { | ||
688 | m_log.ErrorFormat("[CONSOLE]: Failed to find user {0} {1}", firstName, lastName); | ||
689 | return; | ||
690 | } | ||
691 | } | ||
666 | 692 | ||
667 | /// <summary> | 693 | /// <summary> |
668 | /// Performs any last-minute sanity checking and shuts down the region server | 694 | /// Performs any last-minute sanity checking and shuts down the region server |