From 3913594f3cd3e1e023b663a88d4f60fa93109231 Mon Sep 17 00:00:00 2001 From: in2 Date: Thu, 30 May 2002 10:58:45 +0000 Subject: register user if he isn't online git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@248 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/admin.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mbbsd/admin.c') 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 #include #include @@ -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); -- cgit v1.2.3