From b42f7b80fc9531740851426862ccf5a25fa76215 Mon Sep 17 00:00:00 2001 From: in2 Date: Sun, 17 Mar 2002 08:33:48 +0000 Subject: one key to confirm register delete justify.wait git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@41 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/admin.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'mbbsd') diff --git a/mbbsd/admin.c b/mbbsd/admin.c index 04804809..b0ef5f3e 100644 --- a/mbbsd/admin.c +++ b/mbbsd/admin.c @@ -1,4 +1,4 @@ -/* $Id: admin.c,v 1.3 2002/03/09 17:27:57 in2 Exp $ */ +/* $Id: admin.c,v 1.4 2002/03/17 08:33:48 in2 Exp $ */ #include #include #include @@ -815,6 +815,9 @@ int scan_register_form(char *regfile, int automode, int neednum) { getdata(b_lines - 1, 0, "是否接受此資料(Y/N/Q/Del/Skip)?[S] ", ans, 3, LCECHO); + ans[0] = igetch(); + if( 'A' <= ans[0] && ans[0] <= 'Z' ) + ans[0] += 32; if( ans[0] != 'y' && ans[0] != 'n' && ans[0] != 'q' && ans[0] != 'd' ) ans[0] = 's'; @@ -926,6 +929,9 @@ int scan_register_form(char *regfile, int automode, int neednum) { fprintf(fout, "----\n"); fclose(fout); } + + sethomefile(genbuf, muser.userid, "justify.wait"); + unlink(genbuf); break; } } -- cgit v1.2.3