Skip to content
Snippets Groups Projects
Commit 6a8b29cd authored by rswindell's avatar rswindell
Browse files

Add a comment to the .ini file with the name & version of the script.

Convert log_level to LogLevel to be more consistent with sbbs.ini, services.ini
etc.
parent 3f8fae0f
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,8 @@
// Converts ctrl/sbbsecho.cfg (or other file if specified)
// to ctrl/sbbsecho.ini
const REVISION = "$Revision$".split(' ')[1];
var debug = false;
function newnode()
......@@ -130,6 +132,7 @@ if(!file.open("w")) {
exit();
}
file.writeln("; Converted from " + cfgfile + " using " + js.exec_file + " " + REVISION);
file.writeln("check_path = " + !Boolean(bool_opts["nopathcheck"])), delete bool_opts["nopathcheck"];
file.writeln("fwd_circular = " + !Boolean(bool_opts["nocircularfwd"])), delete bool_opts["nocircularfwd"];
file.writeln("kill_empty_netmail = " + Boolean(bool_opts["kill_empty"])), delete bool_opts["kill_empty"];
......@@ -143,6 +146,8 @@ if(parseInt(value_opts["zone_blind"]))
file.writeln("zone_blind_threshold = " + parseInt(value_opts["zone_blind"])), delete value_opts["zone_blind"];
if(value_opts["log"] && value_opts["log"].charAt(0) == '0')
file.writeln("log = 0x" + value_opts["log"]), delete value_opts["log"];
if(value_opts["log_level"])
file.writeln("LogLevel = " + value_opts["log_level"]), delete value_opts["log_level"];
if(!value_opts["inbound"] && value_opts["outbound"]) {
var inbound = value_opts["outbound"].replace("out","in");
alert("Setting inbound dir to best guess (no longer using SCFG setting): " + inbound);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment