summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-30 18:58:45 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-30 18:58:45 +0800
commit3913594f3cd3e1e023b663a88d4f60fa93109231 (patch)
tree03644375562ea6fefb104aaa20d4524aba3aec5f
parentdedfbc13da505a9566928dd8777c16a2032ebe90 (diff)
downloadpttbbs-3913594f3cd3e1e023b663a88d4f60fa93109231.tar
pttbbs-3913594f3cd3e1e023b663a88d4f60fa93109231.tar.gz
pttbbs-3913594f3cd3e1e023b663a88d4f60fa93109231.tar.bz2
pttbbs-3913594f3cd3e1e023b663a88d4f60fa93109231.tar.lz
pttbbs-3913594f3cd3e1e023b663a88d4f60fa93109231.tar.xz
pttbbs-3913594f3cd3e1e023b663a88d4f60fa93109231.tar.zst
pttbbs-3913594f3cd3e1e023b663a88d4f60fa93109231.zip
register user if he isn't online
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@248 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/admin.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index 1712d7e4..ec8da78a 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -1,4 +1,4 @@
-/* $Id: admin.c,v 1.15 2002/05/25 11:18:11 ptt Exp $ */
+/* $Id: admin.c,v 1.16 2002/05/30 10:58:45 in2 Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -795,7 +795,8 @@ int scan_register_form(char *regfile, int automode, int neednum) {
if(automode)
uid = autoid;
- if(!automode || !auto_scan(fdata, ans)) {
+ if( (!automode || !auto_scan(fdata, ans)) &&
+ search_ulist(unum) == NULL ) {
uid = cuser.userid;
move(1, 0);