Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
config:modopts.ini [2019/12/18 23:54] – [modopts.ini file] better title digital man | config:modopts.ini [2023/10/19 12:27] (current) – Don't copy/paste defaults into your modopts.ini file digital man | ||
---|---|---|---|
Line 8: | Line 8: | ||
Each [[ini_files# | Each [[ini_files# | ||
+ | If you find that an expected section or key is not present in the file and you want to modify that section or key, just add it. | ||
===== Use ===== | ===== Use ===== | ||
JavaScript module authors use the '' | JavaScript module authors use the '' | ||
- | | + | <code javascript> |
+ | options=load(new Object, " | ||
+ | </ | ||
where " | where " | ||
Line 16: | Line 19: | ||
Example '' | Example '' | ||
- | <file> | + | <code ini> |
[mymodule] | [mymodule] | ||
enable_cool_feature=true | enable_cool_feature=true | ||
- | </file> | + | </code> |
+ | |||
+ | Options that need literal values should use a ':' | ||
+ | <code ini> | ||
+ | [xtrn_sec] | ||
+ | which: \r\n\1-\1gWhich or \1h~Q\1n\1guit: | ||
+ | </code> | ||
Example module use of modopts in a fictional example module named " | Example module use of modopts in a fictional example module named " | ||
- | < | + | < |
options=load(new Object, " | options=load(new Object, " | ||
Line 28: | Line 37: | ||
| | ||
</ | </ | ||
+ | |||
+ | ===== Defaults ===== | ||
+ | Synchronet Modules should have optimal default values for any options that they make available via the '' | ||
===== See Also ===== | ===== See Also ===== | ||
* [[: | * [[: | ||
+ | * [[module: | ||
+ | * [[module: | ||
+ | * [[module: | ||
+ | * [[module: | ||
+ | * [[module: | ||
+ | * [[module: | ||
+ | * [[service: | ||
+ | * [[module: | ||
+ | * [[module: | ||
+ | * [[module: | ||
+ | * [[module: | ||
+ | * [[module: | ||
+ | |||
+ | |||
+ | {{tag> | ||
+ | |||
- | {{tag> | ||