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

Use the bbs.menu_exists() method of checking for text/menu/logon*.* files

parent c274a573
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,7 @@ for(var i=0;;i++) {
var fname="logon";
if(i)
fname+=i;
if(!file_exists(system.text_dir + "menu/" + fname + ".asc")) {
if(!bbs.menu_exists(fname)) {
if(i>1)
break;
continue;
......@@ -111,8 +111,8 @@ for(var i=0;;i++) {
}
// Print logon screens based on security level
if(user.security.level > highest_printed_logon_screen
&& file_exists(system.text_dir + "menu/logon" + user.security.level + ".*"))
if(user.security.level > highest_printed_logon_screen
&& bbs.menu_exists("logon" + user.security.level))
bbs.menu("logon" + user.security.level);
// Print one of text/menu/random*.*, picked at random
......
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