diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-01 20:42:33 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-01 20:42:33 +0800 |
commit | 3a014d927e393b889f074113c0a398ddb04807b2 (patch) | |
tree | f439934fd5b732020126453d88ba3648070ff778 /mbbsd/mail.c | |
parent | 4c256182f70ad244e0ec40af45c0c0857abb0a01 (diff) | |
download | pttbbs-3a014d927e393b889f074113c0a398ddb04807b2.tar pttbbs-3a014d927e393b889f074113c0a398ddb04807b2.tar.gz pttbbs-3a014d927e393b889f074113c0a398ddb04807b2.tar.bz2 pttbbs-3a014d927e393b889f074113c0a398ddb04807b2.tar.lz pttbbs-3a014d927e393b889f074113c0a398ddb04807b2.tar.xz pttbbs-3a014d927e393b889f074113c0a398ddb04807b2.tar.zst pttbbs-3a014d927e393b889f074113c0a398ddb04807b2.zip |
- sync ptt2 local modification
- refine post/vote restriction magic code
- color in making recommend
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3603 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r-- | mbbsd/mail.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c index a34eea30..74efde1f 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -1310,12 +1310,9 @@ mail_cross_post(int ent, fileheader_t * fhdr, const char *direct) ent = getbnum(xboard); assert(0<=ent-1 && ent-1<MAX_BOARD); - if ( !(HasUserPerm(PERM_SYSOP)) && - (cuser.firstlogin > (now - (time4_t)bcache[ent - 1].post_limit_regtime * 2592000) || - cuser.badpost > (255 - (unsigned int)(bcache[ent - 1].post_limit_badpost)) || - 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); + if (!CheckPostRestriction(ent)) + { + move(5, 10); // why move (5, 10)? vmsg("你不夠資深喔! (可在看板內按大寫 I 查看限制)"); return FULLUPDATE; } |