summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbbs <bbs@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-21 17:08:35 +0800
committerbbs <bbs@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-21 17:08:35 +0800
commitb9a77ec8210f2eb69074772a230782acbc1017e3 (patch)
tree18ca2d63da55b1af6617ef0e368484c9fcccd316
parent1ebb3c9a6bc4ac3942f1e1ed9ce47d9178f65d1c (diff)
downloadpttbbs-b9a77ec8210f2eb69074772a230782acbc1017e3.tar
pttbbs-b9a77ec8210f2eb69074772a230782acbc1017e3.tar.gz
pttbbs-b9a77ec8210f2eb69074772a230782acbc1017e3.tar.bz2
pttbbs-b9a77ec8210f2eb69074772a230782acbc1017e3.tar.lz
pttbbs-b9a77ec8210f2eb69074772a230782acbc1017e3.tar.xz
pttbbs-b9a77ec8210f2eb69074772a230782acbc1017e3.tar.zst
pttbbs-b9a77ec8210f2eb69074772a230782acbc1017e3.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@331 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/user.c5
1 files changed, 3 insertions, 2 deletions
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--;
}