summaryrefslogtreecommitdiffstats
path: root/mbbsd/mail.c
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-03 21:14:59 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-03 21:14:59 +0800
commitfea64042f0f66b989215dfdf644dade15b2b6be1 (patch)
treec4ce862fecd857f32e5ceafbb4659145c1097d69 /mbbsd/mail.c
parentc8e482734eccf9567c8ca19edd126ab3d9d6404c (diff)
downloadpttbbs-fea64042f0f66b989215dfdf644dade15b2b6be1.tar
pttbbs-fea64042f0f66b989215dfdf644dade15b2b6be1.tar.gz
pttbbs-fea64042f0f66b989215dfdf644dade15b2b6be1.tar.bz2
pttbbs-fea64042f0f66b989215dfdf644dade15b2b6be1.tar.lz
pttbbs-fea64042f0f66b989215dfdf644dade15b2b6be1.tar.xz
pttbbs-fea64042f0f66b989215dfdf644dade15b2b6be1.tar.zst
pttbbs-fea64042f0f66b989215dfdf644dade15b2b6be1.zip
add regtime to post & vote limits
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2573 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r--mbbsd/mail.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index dd571ee6..2b0b7160 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -1044,10 +1044,11 @@ mail_cross_post(int ent, fileheader_t * fhdr, char *direct)
return TITLE_REDRAW;
ent = getbnum(xboard);
- if ( cuser.numlogins < ((unsigned int)(bcache[ent - 1].post_limit_logins) * 10) ||
+ if ( cuser.firstlogin > (now - (time4_t)bcache[currbid - 1].post_limit_regtime * 2592000) ||
+ cuser.numlogins < ((unsigned int)(bcache[ent - 1].post_limit_logins) * 10) ||
cuser.numposts < ((unsigned int)(bcache[ent - 1].post_limit_posts) * 10) ) {
move(5, 10);
- vmsg("你的上站數/文章數不足喔!");
+ vmsg("你不夠資深喔!");
return FULLUPDATE;
}