Changed menu logging

This commit is contained in:
Michiel Broek 2004-08-07 15:11:05 +00:00
parent 326b4e32f7
commit 0afef11716
3 changed files with 12 additions and 3 deletions

View File

@ -28,6 +28,7 @@ v0.61.3 25-Jul-2004
mbsebbs: mbsebbs:
When a netmail reply is done to a node without a valid address When a netmail reply is done to a node without a valid address
we ask the user if he wants to continue. we ask the user if he wants to continue.
Changed menu logging
mbtask: mbtask:
Added defaults for questions for screenlen, newmail chack and Added defaults for questions for screenlen, newmail chack and

7
TODO
View File

@ -25,6 +25,8 @@ everything:
N: Increase size of Unix usernames > 8. N: Increase size of Unix usernames > 8.
N: Add personal message area.
install: install:
N: On some (unsupported) distro's with xinetd the installation script N: On some (unsupported) distro's with xinetd the installation script
also adds entries to inetd.conf. also adds entries to inetd.conf.
@ -114,6 +116,11 @@ mbfido:
N: Hatch statistics are not updated. N: Hatch statistics are not updated.
N: Copy personal mail to a personal message area.
N: Implement areamgr/filemgr %avail command to list available areas
from areas files.
mbcico: mbcico:
L: Implement binkp option ND. L: Implement binkp option ND.

View File

@ -93,6 +93,7 @@ void menu()
Input = calloc(PATH_MAX, sizeof(char)); Input = calloc(PATH_MAX, sizeof(char));
sMenuPathFileName = calloc(PATH_MAX, sizeof(char)); sMenuPathFileName = calloc(PATH_MAX, sizeof(char));
Syslog('+', "Starting menu loop");
/* /*
* Loop forever, this is what a BBS should do until a user logs out. * Loop forever, this is what a BBS should do until a user logs out.
@ -110,9 +111,9 @@ void menu()
sprintf(sMenuPathFileName,"%s/%s", CFG.bbs_menus, Menus[MenuLevel]); sprintf(sMenuPathFileName,"%s/%s", CFG.bbs_menus, Menus[MenuLevel]);
pMenuFile = fopen(sMenuPathFileName,"r"); pMenuFile = fopen(sMenuPathFileName,"r");
if (pMenuFile != NULL) if (pMenuFile != NULL)
Syslog('+', "Menu %s (Default)", Menus[MenuLevel]); Syslog('b', "Menu %s (Default)", Menus[MenuLevel]);
} else { } else {
Syslog('+', "Menu %s (%s)", Menus[MenuLevel], lang.Name); Syslog('b', "Menu %s (%s)", Menus[MenuLevel], lang.Name);
} }
if (pMenuFile == NULL) { if (pMenuFile == NULL) {
@ -224,7 +225,7 @@ void menu()
if ((strcmp(tu(Input), menus.MenuKey)) == 0) { if ((strcmp(tu(Input), menus.MenuKey)) == 0) {
if ((Le_Access(exitinfo.Security, menus.MenuSecurity)) && (UserAge >= le_int(menus.Age))) { if ((Le_Access(exitinfo.Security, menus.MenuSecurity)) && (UserAge >= le_int(menus.Age))) {
Syslog('b', "Menu[%d] %d=(%s), Opt: '%s'", MenuLevel, le_int(menus.MenuType), Syslog('+', "Menu[%d] %d=(%s), Opt: '%s'", MenuLevel, le_int(menus.MenuType),
menus.TypeDesc, menus.OptionalData); menus.TypeDesc, menus.OptionalData);
if (le_int(menus.MenuType) == 13) { if (le_int(menus.MenuType) == 13) {
/* /*