Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
config:modopts.ini [2021/05/25 19:15] – [Format] Mention that you (sysop) can add sections/keys as needed digital man | config:modopts.ini [2023/10/19 12:27] (current) – Don't copy/paste defaults into your modopts.ini file digital man | ||
---|---|---|---|
Line 11: | Line 11: | ||
===== Use ===== | ===== Use ===== | ||
JavaScript module authors use the '' | JavaScript module authors use the '' | ||
- | | + | <code javascript> |
+ | options=load(new Object, " | ||
+ | </ | ||
where " | where " | ||
Line 17: | 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 ':' | Options that need literal values should use a ':' | ||
- | <file> | + | <code ini> |
[xtrn_sec] | [xtrn_sec] | ||
which: \r\n\1-\1gWhich or \1h~Q\1n\1guit: | which: \r\n\1-\1gWhich or \1h~Q\1n\1guit: | ||
- | </file> | + | </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 35: | Line 37: | ||
| | ||
</ | </ | ||
+ | |||
+ | ===== Defaults ===== | ||
+ | Synchronet Modules should have optimal default values for any options that they make available via the '' | ||
===== See Also ===== | ===== See Also ===== | ||
Line 51: | Line 56: | ||
* [[module: | * [[module: | ||
- | {{tag> | + | |
+ | {{tag>configuration | ||