From f3c4b2b019f3c2bbb76021a02ed0dd8bb8195457 Mon Sep 17 00:00:00 2001 From: wens Date: Sat, 1 Jul 2006 12:58:11 +0000 Subject: limit recommend git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3377 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'mbbsd/bbs.c') 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. */ -- cgit v1.2.3