Change "config save" to "config save <filename>", which is mandatory.

File name is enforced to NOT be OpenSim.ini
prioritization
Melanie 2009-10-20 14:02:11 +01:00
parent 182693628c
commit 26863c04a5
1 changed files with 14 additions and 2 deletions

View File

@ -628,8 +628,20 @@ namespace OpenSim
break; break;
case "save": case "save":
m_log.Info("Saving configuration file: " + Application.iniFilePath); if (cmdparams.Length < 2)
m_config.Save(Application.iniFilePath); {
m_log.Error("SYNTAX: " + n + " SAVE FILE");
return;
}
if (Application.iniFilePath == cmdparams[1])
{
m_log.Error("FILE can not be "+Application.iniFilePath);
return;
}
m_log.Info("Saving configuration file: " + cmdparams[1]);
m_config.Save(cmdparams[1]);
break; break;
} }
} }