aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs16
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 }