summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-30 20:11:09 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-30 20:11:09 +0800
commit8ac21d71f5e4b6b30c207a176d5811c2ec9a638d (patch)
tree1c6f0e94524ce0a16d4e47499b7de87d7b77d90b
parent3913594f3cd3e1e023b663a88d4f60fa93109231 (diff)
downloadpttbbs-8ac21d71f5e4b6b30c207a176d5811c2ec9a638d.tar
pttbbs-8ac21d71f5e4b6b30c207a176d5811c2ec9a638d.tar.gz
pttbbs-8ac21d71f5e4b6b30c207a176d5811c2ec9a638d.tar.bz2
pttbbs-8ac21d71f5e4b6b30c207a176d5811c2ec9a638d.tar.lz
pttbbs-8ac21d71f5e4b6b30c207a176d5811c2ec9a638d.tar.xz
pttbbs-8ac21d71f5e4b6b30c207a176d5811c2ec9a638d.tar.zst
pttbbs-8ac21d71f5e4b6b30c207a176d5811c2ec9a638d.zip
fix last commit bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@249 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/admin.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index ec8da78a..96c91b9c 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -1,4 +1,4 @@
-/* $Id: admin.c,v 1.16 2002/05/30 10:58:45 in2 Exp $ */
+/* $Id: admin.c,v 1.17 2002/05/30 12:11:09 in2 Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -795,8 +795,7 @@ int scan_register_form(char *regfile, int automode, int neednum) {
if(automode)
uid = autoid;
- if( (!automode || !auto_scan(fdata, ans)) &&
- search_ulist(unum) == NULL ) {
+ if( (!automode || !auto_scan(fdata, ans)) ) {
uid = cuser.userid;
move(1, 0);
@@ -819,7 +818,10 @@ int scan_register_form(char *regfile, int automode, int neednum) {
} else {
move(b_lines - 1, 0);
prints("是否接受此資料(Y/N/Q/Del/Skip)?[S] ");
- ans[0] = igetch();
+ if( search_ulist(unum) == NULL )
+ ans[0] = igetch();
+ else
+ ans[0] = 's';
if( 'A' <= ans[0] && ans[0] <= 'Z' )
ans[0] += 32;
if( ans[0] != 'y' && ans[0] != 'n' && ans[0] != 'q' &&