Commit 8604a33e authored by rswindell's avatar rswindell
Browse files

If the menu file text/menu/xtrn/code.* exists (where code is the external

program's internal code), the file will be displayed to the user before the
door is run.
parent f87a2eba
......@@ -43,7 +43,7 @@
/****************************************************************************/
int sbbs_t::xtrn_sec()
{
char str[256];
char str[MAX_PATH+1];
int xsec;
uint i,j,k,*usrxtrn,usrxtrns,*usrxsec,usrxsecs;
long l;
......@@ -172,7 +172,14 @@ int sbbs_t::xtrn_sec()
SYNC;
if((l=getnum(usrxtrns))<1)
break;
exec_xtrn(usrxtrn[l-1]);
l--;
sprintf(str,"%smenu/xtrn/%s.*",cfg.text_dir,cfg.xtrn[usrxtrn[l]]->code);
if(fexist(str)) {
sprintf(str,"xtrn/%s",cfg.xtrn[usrxtrn[l]]->code);
menu(str);
lncntr=0;
}
exec_xtrn(usrxtrn[l]);
}
if(usrxsecs<2)
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment