diff options
author | bbs <bbs@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-21 17:08:35 +0800 |
---|---|---|
committer | bbs <bbs@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-21 17:08:35 +0800 |
commit | 915c22eb440a4f34ee4e07978d7dbc2c2f436093 (patch) | |
tree | d62a9ec210680b53a6bb81acfde32405956c5d67 | |
parent | e88ac0a6d9cdd179d4a148f56c06cd0e689aeb7f (diff) | |
download | pttbbs-915c22eb440a4f34ee4e07978d7dbc2c2f436093.tar pttbbs-915c22eb440a4f34ee4e07978d7dbc2c2f436093.tar.gz pttbbs-915c22eb440a4f34ee4e07978d7dbc2c2f436093.tar.bz2 pttbbs-915c22eb440a4f34ee4e07978d7dbc2c2f436093.tar.lz pttbbs-915c22eb440a4f34ee4e07978d7dbc2c2f436093.tar.xz pttbbs-915c22eb440a4f34ee4e07978d7dbc2c2f436093.tar.zst pttbbs-915c22eb440a4f34ee4e07978d7dbc2c2f436093.zip |
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@331 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/user.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/user.c b/pttbbs/mbbsd/user.c index 337010f1..0ba23981 100644 --- a/pttbbs/mbbsd/user.c +++ b/pttbbs/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--; } |