Synchronet v3.20b-Win32 (install) has been released (Jan-2025).

You can donate to the Synchronet project using PayPal.

ctrl/modopts directory

The modopts sub-directory of the ctrl directory contains module-specific configuration files (in .ini format).

The base filename of .ini files in the modopts directory should be the same as the module name (e.g. modname.js should load() modopts.js and pass modname as argument which will then return options from ctrl/modopts/modname.ini).

If the corresponding ctrl/modopts/modname.ini file exists, ctrl/modopts.ini (or by extension, ctrl/modopts.d/*.ini) will not be opened/parsed by exec/load/modopts.js.

Contrasted with ctrl/modopts.d/*.ini files, modopts/*.ini files need not contain their module-specific section heading (i.e. [modname]):

  • Any keys from the root section of the .ini file will be properties of the parsed (options) object
  • Keys from one or more [sections] maybe added-to the parsed object if the current user meets the Access Requirements provided in the section name
  • Keys parsed in [sections] of the .ini file will override keys parsed previously from the root section or any previous-parsed [sections]

See Also