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

In system information ('I' from the Info: prompt), don't display the system.msg

or logon.asc if they don't exist.
parent 64c900d1
No related branches found
No related tags found
No related merge requests found
......@@ -850,6 +850,7 @@ char* sbbs_t::datestr(time_t t)
void sbbs_t::sys_info()
{
char tmp[128];
char path[MAX_PATH+1];
uint i;
stats_t stats;
......@@ -875,12 +876,13 @@ void sbbs_t::sys_info()
bprintf(text[SiTotalTime],ultoac(stats.timeon,tmp));
bprintf(text[SiTimeToday],ultoac(stats.ttoday,tmp));
ver();
if(text[ViewSysInfoFileQ][0] && yesno(text[ViewSysInfoFileQ])) {
SAFEPRINTF(path, "%ssystem.msg", cfg.text_dir);
if(fexistcase(path) && text[ViewSysInfoFileQ][0] && yesno(text[ViewSysInfoFileQ])) {
CLS;
sprintf(tmp,"%ssystem.msg", cfg.text_dir);
printfile(tmp,0);
printfile(path,0);
}
if(text[ViewLogonMsgQ][0] && yesno(text[ViewLogonMsgQ])) {
SAFEPRINTF(path, "%smenu/logon.asc", cfg.text_dir);
if(fexistcase(path) && text[ViewLogonMsgQ][0] && yesno(text[ViewLogonMsgQ])) {
CLS;
menu("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