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

Add viewing of BinkP stats (binkstats.ini)

parent 2b243e38
No related branches found
No related tags found
No related merge requests found
......@@ -444,7 +444,7 @@ int view_logs(scfg_t *cfg)
localtime_r(&now,&tm);
now -= 60*60*24;
localtime_r(&now,&tm_yest);
const int num_opts = 11;
const int num_opts = 12;
if((opt=(char **)alloca(sizeof(char *)*(num_opts+1)))==NULL)
allocfail(sizeof(char *)*(num_opts+1));
for(i=0;i<(num_opts+1);i++)
......@@ -460,6 +460,7 @@ int view_logs(scfg_t *cfg)
strcpy(opt[i++],"Spam log");
strcpy(opt[i++],"SBBSecho log");
strcpy(opt[i++],"EchoMail stats");
strcpy(opt[i++],"BinkP stats");
strcpy(opt[i++],"Bad Areas list");
strcpy(opt[i++],"Guru log");
strcpy(opt[i++],"Hack log");
......@@ -474,7 +475,8 @@ int view_logs(scfg_t *cfg)
"`Yesterday's log : `View Yesterday's system activity.\n"
"`Spam log : `View the log of Spam E-Mail sent to the system.\n"
"`SBBSecho log : `View the FidoNet EchoMail program log.\n"
"`EchoMail stats : `view the EchoMail statistics.\n"
"`EchoMail stats : `view the FidoNet EchoMail statistics.\n"
"`Binkp stats : `view the BinkP FidoNet mailer statistics.\n"
"`Bad Areas list : `view the list of unknown EchoMail areas.\n"
"`Guru log : `View the transcriptions of chats with the Guru.\n"
"`Hack log : `View the Hack attempt log.";
......@@ -520,14 +522,18 @@ int view_logs(scfg_t *cfg)
view_log(str,"EchoMail Stats");
break;
case 8:
sprintf(str,"%sbinkstats.ini",cfg->data_dir);
view_log(str,"BinkP Stats");
break;
case 9:
sprintf(str,"%sbadareas.lst",cfg->data_dir);
view_log(str,"Bad Area List");
break;
case 9:
case 10:
sprintf(str,"%sguru.log",cfg->logs_dir);
view_log(str,"Guru Log");
break;
case 10:
case 11:
sprintf(str,"%shack.log",cfg->logs_dir);
view_log(str,"Hack Log");
break;
......
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