summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-17 16:33:48 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-17 16:33:48 +0800
commitb42f7b80fc9531740851426862ccf5a25fa76215 (patch)
tree57dc48c0ef9f630f6b2ab9911676bfe223e4f2e1
parent9480c73640f76abcb0624fc3b42ff52d4047c9b6 (diff)
downloadpttbbs-b42f7b80fc9531740851426862ccf5a25fa76215.tar
pttbbs-b42f7b80fc9531740851426862ccf5a25fa76215.tar.gz
pttbbs-b42f7b80fc9531740851426862ccf5a25fa76215.tar.bz2
pttbbs-b42f7b80fc9531740851426862ccf5a25fa76215.tar.lz
pttbbs-b42f7b80fc9531740851426862ccf5a25fa76215.tar.xz
pttbbs-b42f7b80fc9531740851426862ccf5a25fa76215.tar.zst
pttbbs-b42f7b80fc9531740851426862ccf5a25fa76215.zip
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
-rw-r--r--mbbsd/admin.c8
1 files changed, 7 insertions, 1 deletions
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 <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -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;
}
}