Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, for more info) to build successfully.

Commit 58c10628 authored by Rob Swindell's avatar Rob Swindell 💬

Support blank strings in modopts.ini

Use the new "blanks" option with File.iniGetAllObjects().
This means that keys specified in the modopts.ini with no value
will now be represented as blank strings ("") instead of undefined values,
in JS modules.
parent 1af02470
Pipeline #636 passed with stage
in 9 minutes and 51 seconds
......@@ -29,7 +29,7 @@ function get_mod_options(modname, optname, default_optval)
if(optname) // Get a specific option value (optionally, with default value)
val = ini_file.iniGetValue(modname, optname, default_optval);
else // Get all options
val = ini_file.iniGetObject(modname);
val = ini_file.iniGetObject(modname, /* lowercase */false, /* blanks: */true);
return val;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment