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

A small library for loading/caching the [nodelist] options from the

ctrl/modopts.ini file. Used by scripts performing frequent node activity /
user presence actions.
Thanks Ragnark for pointing out that I had forgot to add this file to CVS.
parent d012ee0f
No related branches found
No related tags found
No related merge requests found
// $Id$
var options = bbs.mods.nodelist_options;
if(!options) {
options = load({}, "modopts.js", "nodelist");
if(!options)
options = {};
if(!options.format)
options.format = "\x01n\x01h%3d \x01n\x01g%s";
if(!options.username_prefix)
options.username_prefix = '\x01h';
if(!options.status_prefix)
options.status_prefix = '\x01n\x01g';
if(!options.errors_prefix)
options.errors_prefix = '\x01h\x01r';
if(!options.web_inactivity)
options.web_inactivity = load({}, "modopts.js", "web", "inactivity");
bbs.mods.nodelist_options = options; // cache the options
}
options;
\ No newline at end of file
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