From d1c921446905974a6cc77e24b274ecade5ae5a43 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sat, 7 Aug 2004 13:38:45 +0000 Subject: [PATCH] Added newuser questions for screenlen, newmail check and newfiles check --- mbsetup/ledit.c | 4 ++-- mbsetup/ledit.h | 2 +- mbsetup/m_global.c | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mbsetup/ledit.c b/mbsetup/ledit.c index 666475d7..2f5b3413 100644 --- a/mbsetup/ledit.c +++ b/mbsetup/ledit.c @@ -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 whene done."); + showhelp(help); do { set_color(YELLOW, BLUE); show_asktype(y, x, val); diff --git a/mbsetup/ledit.h b/mbsetup/ledit.h index ea91c0d2..9cedb265 100644 --- a/mbsetup/ledit.h +++ b/mbsetup/ledit.h @@ -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); diff --git a/mbsetup/m_global.c b/mbsetup/m_global.c index 9bcfea87..2bff9e50 100644 --- a/mbsetup/m_global.c +++ b/mbsetup/m_global.c @@ -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"); } }; }