diff options
author | Justin Clarke Casey | 2008-07-29 18:14:58 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-07-29 18:14:58 +0000 |
commit | 19a5e56d55b19c738605f49361157f14792d9d8a (patch) | |
tree | 5456514f00ec3ae494502d6ae999263d11c8bed8 /OpenSim | |
parent | * find user on save-inv (diff) | |
download | opensim-SC-19a5e56d55b19c738605f49361157f14792d9d8a.zip opensim-SC-19a5e56d55b19c738605f49361157f14792d9d8a.tar.gz opensim-SC-19a5e56d55b19c738605f49361157f14792d9d8a.tar.bz2 opensim-SC-19a5e56d55b19c738605f49361157f14792d9d8a.tar.xz |
* add file path parameter to save-inv (in development)
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Application/OpenSimBase.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index 18edeac..8164b1a 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs | |||
@@ -670,17 +670,18 @@ namespace OpenSim | |||
670 | /// <param name="cmdparams"></param> | 670 | /// <param name="cmdparams"></param> |
671 | protected void SaveInv(string[] cmdparams) | 671 | protected void SaveInv(string[] cmdparams) |
672 | { | 672 | { |
673 | m_log.Error("[CONSOLE]: This has not been implemented yet!"); | 673 | m_log.Error("[CONSOLE]: This command has not yet been implemented!"); |
674 | 674 | ||
675 | if (cmdparams.Length < 3) | 675 | if (cmdparams.Length < 3) |
676 | { | 676 | { |
677 | m_log.Error("[CONSOLE]: usage is save-inv <first name> <last name> <inventory path>"); | 677 | m_log.Error("[CONSOLE]: usage is save-inv <first name> <last name> <inventory path> [<save file path>]"); |
678 | return; | 678 | return; |
679 | } | 679 | } |
680 | 680 | ||
681 | string firstName = cmdparams[0]; | 681 | string firstName = cmdparams[0]; |
682 | string lastName = cmdparams[1]; | 682 | string lastName = cmdparams[1]; |
683 | string invPath = cmdparams[2]; | 683 | string invPath = cmdparams[2]; |
684 | string savePath = (cmdparams.Length > 3 ? cmdparams[3] : DEFAULT_INV_BACKUP_FILENAME); | ||
684 | 685 | ||
685 | UserProfileData userProfile = m_commsManager.UserService.GetUserProfile(firstName, lastName); | 686 | UserProfileData userProfile = m_commsManager.UserService.GetUserProfile(firstName, lastName); |
686 | if (null == userProfile) | 687 | if (null == userProfile) |