summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-18 00:39:19 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-18 00:39:19 +0800
commitf260ebd0496c7ae350c2e9ffa52444420231246a (patch)
tree36aa24006f719ebde3c8038358354039e43c272e
parent0f6ee15444ebc7e394a2eaa870b9c22ebc2d187c (diff)
downloadpttbbs-f260ebd0496c7ae350c2e9ffa52444420231246a.tar
pttbbs-f260ebd0496c7ae350c2e9ffa52444420231246a.tar.gz
pttbbs-f260ebd0496c7ae350c2e9ffa52444420231246a.tar.bz2
pttbbs-f260ebd0496c7ae350c2e9ffa52444420231246a.tar.lz
pttbbs-f260ebd0496c7ae350c2e9ffa52444420231246a.tar.xz
pttbbs-f260ebd0496c7ae350c2e9ffa52444420231246a.tar.zst
pttbbs-f260ebd0496c7ae350c2e9ffa52444420231246a.zip
fix bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@44 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/admin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index b0ef5f3e..7ca5e466 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -1,4 +1,4 @@
-/* $Id: admin.c,v 1.4 2002/03/17 08:33:48 in2 Exp $ */
+/* $Id: admin.c,v 1.5 2002/03/17 16:39:19 in2 Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -818,8 +818,8 @@ int scan_register_form(char *regfile, int automode, int neednum) {
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' )
+ if( ans[0] != 'y' && ans[0] != 'n' && ans[0] != 'q' &&
+ ans[0] != 'd' && !('0' <= ans[0] && ans[0] <= '4') )
ans[0] = 's';
ans[1] = 0;
}