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

New @-code: CONDMENU (conditional menu) - displays a menu/display file

only if it exists (on disk) and displays no error message if the file does not
exist. Nearly identical to the existing MENU @-Code, but without the need to
insure the file actually exists first.
parent 1fee774d
No related branches found
No related tags found
No related merge requests found
...@@ -647,6 +647,11 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen) ...@@ -647,6 +647,11 @@ const char* sbbs_t::atcode(char* sp, char* str, size_t maxlen)
return(nulstr); return(nulstr);
} }
if(!strncmp(sp,"CONDMENU:",9)) {
menu(sp+9, P_NOERROR);
return(nulstr);
}
if(!strncmp(sp,"TYPE:",5)) { if(!strncmp(sp,"TYPE:",5)) {
printfile(cmdstr(sp+5,nulstr,nulstr,str),0); printfile(cmdstr(sp+5,nulstr,nulstr,str),0);
return(nulstr); return(nulstr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment