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

Added support for random logon screens (text/menu/random*.*).

parent 5f483fb2
No related branches found
No related tags found
No related merge requests found
// logon.js
// Synchronet v3.10 Default Logon Module
// Synchronet v3.1 Default Logon Module
// $Id$
......@@ -76,6 +76,12 @@ for(i=0;;i++) {
bbs.menu(fname);
}
// Print one of text/menu/random*.*, picked at random
// e.g. random1.asc, random2.asc, random3.asc, etc.
var random_list = directory(system.text_dir + "menu/random*.*");
if(random_list.length)
bbs.menu(file_getname(random_list[random(random_list.length)]).slice(0,-4));
console.clear();
bbs.user_event(EVENT_LOGON);
......
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