Added newuser questions for screenlen, newmail check and newfiles check
This commit is contained in:
parent
33bc727fa5
commit
d1c9214469
@ -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;
|
||||
|
||||
showhelp((char *)"Toggle ^Question mode^ with spacebar, press <Enter> whene done.");
|
||||
showhelp(help);
|
||||
do {
|
||||
set_color(YELLOW, BLUE);
|
||||
show_asktype(y, x, val);
|
||||
|
@ -72,7 +72,7 @@ void show_magictype(int, int, int);
|
||||
int edit_magictype(int, int, int);
|
||||
char *get_asktype(int);
|
||||
void show_asktype(int, int, int);
|
||||
int edit_asktype(int, int, int);
|
||||
int edit_asktype(int, int, int, char *);
|
||||
char *get_sessiontype(int);
|
||||
void show_sessiontype(int, int, int);
|
||||
int edit_sessiontype(int, int, int);
|
||||
|
@ -498,10 +498,10 @@ void e_newuser(void)
|
||||
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 15:E_BOOL(12,68, CFG.AskScreenlen, "Ask new user to set the ^screen length^")
|
||||
case 16:CFG.AskNewmail =
|
||||
edit_asktype(13,68,CFG.AskNewmail, "Set ^new mail^ check at login, toggle wit space, Enter when done");
|
||||
case 17:CFG.AskNewfiles =
|
||||
edit_asktype(13,68,CFG.AskNewfiles, "Set ^new files^ check at login, toggle wit space, Enter when done");
|
||||
case 16:CFG.AskNewmail = edit_asktype(13,68,CFG.AskNewmail,
|
||||
(char *)"Set ^new mail^ check at login, toggle wit space, Enter when done");
|
||||
case 17:CFG.AskNewfiles = edit_asktype(13,68,CFG.AskNewfiles,
|
||||
(char *)"Set ^new files^ check at login, toggle wit space, Enter when done");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user