Added newuser questions for screenlen, newmail check and newfiles check

This commit is contained in:
Michiel Broek 2004-08-07 13:38:45 +00:00
parent 33bc727fa5
commit d1c9214469
3 changed files with 7 additions and 7 deletions

View File

@ -1920,11 +1920,11 @@ void show_asktype(int y, int x, int val)
int edit_asktype(int y, int x, int val) int edit_asktype(int y, int x, int val, char *help)
{ {
int ch; int ch;
showhelp((char *)"Toggle ^Question mode^ with spacebar, press <Enter> whene done."); showhelp(help);
do { do {
set_color(YELLOW, BLUE); set_color(YELLOW, BLUE);
show_asktype(y, x, val); show_asktype(y, x, val);

View File

@ -72,7 +72,7 @@ void show_magictype(int, int, int);
int edit_magictype(int, int, int); int edit_magictype(int, int, int);
char *get_asktype(int); char *get_asktype(int);
void show_asktype(int, int, int); void show_asktype(int, int, int);
int edit_asktype(int, int, int); int edit_asktype(int, int, int, char *);
char *get_sessiontype(int); char *get_sessiontype(int);
void show_sessiontype(int, int, int); void show_sessiontype(int, int, int);
int edit_sessiontype(int, int, int); int edit_sessiontype(int, int, int);

View File

@ -498,10 +498,10 @@ void e_newuser(void)
case 13:E_BOOL(10,68, CFG.AskAddress, "Ask users ^home address^ in 3 lines") case 13:E_BOOL(10,68, CFG.AskAddress, "Ask users ^home address^ in 3 lines")
case 14:E_BOOL(11,68, CFG.GiveEmail, "Give new users an ^private email^ box") case 14:E_BOOL(11,68, CFG.GiveEmail, "Give new users an ^private email^ box")
case 15:E_BOOL(12,68, CFG.AskScreenlen, "Ask new user to set the ^screen length^") case 15:E_BOOL(12,68, CFG.AskScreenlen, "Ask new user to set the ^screen length^")
case 16:CFG.AskNewmail = case 16:CFG.AskNewmail = edit_asktype(13,68,CFG.AskNewmail,
edit_asktype(13,68,CFG.AskNewmail, "Set ^new mail^ check at login, toggle wit space, Enter when done"); (char *)"Set ^new mail^ check at login, toggle wit space, Enter when done");
case 17:CFG.AskNewfiles = case 17:CFG.AskNewfiles = edit_asktype(13,68,CFG.AskNewfiles,
edit_asktype(13,68,CFG.AskNewfiles, "Set ^new files^ check at login, toggle wit space, Enter when done"); (char *)"Set ^new files^ check at login, toggle wit space, Enter when done");
} }
}; };
} }