diff options
author | Melanie | 2009-10-20 14:02:11 +0100 |
---|---|---|
committer | Melanie | 2009-10-20 14:02:11 +0100 |
commit | 26863c04a5f0fc1ed18d15b278d723468427911c (patch) | |
tree | 0e7c2ccac7494acbda099b49fdf4ba4f8bcf3a1f /OpenSim/Region | |
parent | Fix for index error in llList2String (diff) | |
download | opensim-SC_OLD-26863c04a5f0fc1ed18d15b278d723468427911c.zip opensim-SC_OLD-26863c04a5f0fc1ed18d15b278d723468427911c.tar.gz opensim-SC_OLD-26863c04a5f0fc1ed18d15b278d723468427911c.tar.bz2 opensim-SC_OLD-26863c04a5f0fc1ed18d15b278d723468427911c.tar.xz |
Change "config save" to "config save <filename>", which is mandatory.
File name is enforced to NOT be OpenSim.ini
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index ca6a2a3..143dd2a 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs | |||
@@ -628,8 +628,20 @@ namespace OpenSim | |||
628 | break; | 628 | break; |
629 | 629 | ||
630 | case "save": | 630 | case "save": |
631 | m_log.Info("Saving configuration file: " + Application.iniFilePath); | 631 | if (cmdparams.Length < 2) |
632 | m_config.Save(Application.iniFilePath); | 632 | { |
633 | m_log.Error("SYNTAX: " + n + " SAVE FILE"); | ||
634 | return; | ||
635 | } | ||
636 | |||
637 | if (Application.iniFilePath == cmdparams[1]) | ||
638 | { | ||
639 | m_log.Error("FILE can not be "+Application.iniFilePath); | ||
640 | return; | ||
641 | } | ||
642 | |||
643 | m_log.Info("Saving configuration file: " + cmdparams[1]); | ||
644 | m_config.Save(cmdparams[1]); | ||
633 | break; | 645 | break; |
634 | } | 646 | } |
635 | } | 647 | } |