From b9a77ec8210f2eb69074772a230782acbc1017e3 Mon Sep 17 00:00:00 2001 From: bbs Date: Fri, 21 Jun 2002 09:08:35 +0000 Subject: *** empty log message *** git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@331 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/user.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mbbsd/user.c') diff --git a/mbbsd/user.c b/mbbsd/user.c index 337010f1..0ba23981 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -1,4 +1,4 @@ -/* $Id: user.c,v 1.23 2002/06/19 13:32:23 lwms Exp $ */ +/* $Id: user.c,v 1.24 2002/06/21 09:08:35 bbs Exp $ */ #include "bbs.h" static char *sex[8] = { @@ -367,6 +367,7 @@ void uinfo_query(userec_t *u, int real, int unum) { } else{ char witness[3][32]; + now= time(0); for(i=0;i<3;i++){ if(!getdata(19+i, 0, "請輸入協助證明之使用者:", witness[i], sizeof(witness[i]), DOECHO)){ @@ -379,7 +380,7 @@ void uinfo_query(userec_t *u, int real, int unum) { fail++; break; } - else if (now - xuser.firstlogin < 6*30*24*60*60){ + else if (now - u->firstlogin < 6*30*24*60*60){ outs("\n註冊未超過半年,請重新輸入\n"); i--; } -- cgit v1.2.3