Skip to content
Snippets Groups Projects
Commit 283b8cb8 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Optional random "Sysop is" string replacement during logon

Set sysop_available and/or sysop_unavailable in the [logon] section of your
modopts.ini to a comma-separated list of strings to pick at random and replace
the default text.dat LiSysopAvailable and LiSysopNotAvailable strings during
logon (displayed as part of the "logon info" block near the end of the
hard-coded logon sequence).

Inspired by the SYSAVAIL.C modification that I used to use with my own
custom ("INHOUSE") build of Synchronet, this is now available for all sysops
to replace "Available" or "Not Available" with a random funny/smart phrase of
your choosing (but without commas; a separate delimeter could be used if that
is a problem).
parent 6416eca7
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,16 @@ if(options.draw_avatar_right === undefined)
options.draw_avatar_right = true;
if(options.show_logon_list === undefined)
options.show_logon_list = true;
if(options.sysop_available) {
require("text.js", 'LiSysopAvailable');
var list = options.sysop_available.split(',');
bbs.replace_text(LiSysopAvailable, list[random(list.length)].trim());
}
if(options.sysop_unavailable) {
require("text.js", 'LiSysopNotAvailable');
var list = options.sysop_unavailable.split(',');
bbs.replace_text(LiSysopNotAvailable, list[random(list.length)].trim());
}
if(options.eval_first)
eval(options.eval_first);
......
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