diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-07-01 20:58:11 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-07-01 20:58:11 +0800 |
commit | f3c4b2b019f3c2bbb76021a02ed0dd8bb8195457 (patch) | |
tree | cdaf8d6a47f8d830c2abbccd8bc03b9a0b95a518 | |
parent | 687369525c55c15fe16656b3e499a9cce56f1528 (diff) | |
download | pttbbs-f3c4b2b019f3c2bbb76021a02ed0dd8bb8195457.tar pttbbs-f3c4b2b019f3c2bbb76021a02ed0dd8bb8195457.tar.gz pttbbs-f3c4b2b019f3c2bbb76021a02ed0dd8bb8195457.tar.bz2 pttbbs-f3c4b2b019f3c2bbb76021a02ed0dd8bb8195457.tar.lz pttbbs-f3c4b2b019f3c2bbb76021a02ed0dd8bb8195457.tar.xz pttbbs-f3c4b2b019f3c2bbb76021a02ed0dd8bb8195457.tar.zst pttbbs-f3c4b2b019f3c2bbb76021a02ed0dd8bb8195457.zip |
limit recommend
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3377 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/bbs.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 40af1b20..44e47ad2 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -2172,6 +2172,17 @@ recommend(int ent, fileheader_t * fhdr, const char *direct) return do_bid(ent, fhdr, bp, direct, ptime); } +#ifndef DEBUG + if ( !((currmode & MODE_BOARD) || HasUserPerm(PERM_SYSOP)) && + (cuser.firstlogin > (now - (time4_t)bcache[currbid - 1].post_limit_regtime * 2592000) || + cuser.numlogins < ((unsigned int)(bcache[currbid - 1].post_limit_logins) * 10) || + cuser.numposts < ((unsigned int)(bcache[currbid - 1].post_limit_posts) * 10)) ) { + move(5, 10); + vmsg("§A¤£°÷¸ê²`³á¡I"); + return FULLUPDATE; + } +#endif + if((currmode & MODE_BOARD) || HasUserPerm(PERM_SYSOP)) { /* I'm BM or SYSOP. */ |