diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-03 21:40:56 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-03 21:40:56 +0800 |
commit | 0d2cdc827cdad0928646498d9105b951eaf4995f (patch) | |
tree | 24ad314bb778d1d96c031c4b1aa1083ccec14851 /mbbsd | |
parent | fea64042f0f66b989215dfdf644dade15b2b6be1 (diff) | |
download | pttbbs-0d2cdc827cdad0928646498d9105b951eaf4995f.tar pttbbs-0d2cdc827cdad0928646498d9105b951eaf4995f.tar.gz pttbbs-0d2cdc827cdad0928646498d9105b951eaf4995f.tar.bz2 pttbbs-0d2cdc827cdad0928646498d9105b951eaf4995f.tar.lz pttbbs-0d2cdc827cdad0928646498d9105b951eaf4995f.tar.xz pttbbs-0d2cdc827cdad0928646498d9105b951eaf4995f.tar.zst pttbbs-0d2cdc827cdad0928646498d9105b951eaf4995f.zip |
Post limits do not apply to BMs and SYSOPs
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2574 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/bbs.c | 15 | ||||
-rw-r--r-- | mbbsd/mail.c | 5 |
2 files changed, 12 insertions, 8 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index b3eb3bc8..37537e3f 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -543,9 +543,10 @@ do_general(int isbid) } #ifndef DEBUG - if ( cuser.firstlogin > (now - (time4_t)bcache[currbid - 1].post_limit_regtime * 2592000) || + if ( ((currmode & MODE_BOARD) || HAS_PERM(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) ) { + cuser.numposts < ((unsigned int)(bcache[currbid - 1].post_limit_posts) * 10)) ) { move(5, 10); vmsg("你不夠資深喔!"); return FULLUPDATE; @@ -804,9 +805,10 @@ do_generalboardreply(fileheader_t * fhdr) { char genbuf[3]; - if ( cuser.firstlogin > (now - (time4_t)bcache[currbid - 1].post_limit_regtime * 2592000) || + if ( ((currmode & MODE_BOARD) || HAS_PERM(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) ) { + cuser.numposts < ((unsigned int)(bcache[currbid - 1].post_limit_posts) * 10)) ) { getdata(b_lines - 1, 0, "▲ 回應至 (M)作者信箱 (Q)取消?[M] ", genbuf, sizeof(genbuf), LCECHO); switch (genbuf[0]) { @@ -1031,9 +1033,10 @@ cross_post(int ent, fileheader_t * fhdr, char *direct) postrecord.checksum[0] = ent; } - if ( cuser.firstlogin > (now - (time4_t)bcache[currbid - 1].post_limit_regtime * 2592000) || + if ( ((currmode & MODE_BOARD) || HAS_PERM(PERM_SYSOP)) && + (cuser.firstlogin > (now - (time4_t)bcache[currbid - 1].post_limit_regtime * 2592000) || cuser.numlogins < ((unsigned int)(bcache[author - 1].post_limit_logins) * 10) || - cuser.numposts < ((unsigned int)(bcache[author - 1].post_limit_posts) * 10) ) { + cuser.numposts < ((unsigned int)(bcache[author - 1].post_limit_posts) * 10)) ) { move(5, 10); vmsg("你不夠資深喔!"); return FULLUPDATE; diff --git a/mbbsd/mail.c b/mbbsd/mail.c index 2b0b7160..839f618c 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -1044,9 +1044,10 @@ mail_cross_post(int ent, fileheader_t * fhdr, char *direct) return TITLE_REDRAW; ent = getbnum(xboard); - if ( cuser.firstlogin > (now - (time4_t)bcache[currbid - 1].post_limit_regtime * 2592000) || + if ( ((currmode & MODE_BOARD) || HAS_PERM(PERM_SYSOP)) && + (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) ) { + cuser.numposts < ((unsigned int)(bcache[ent - 1].post_limit_posts) * 10)) ) { move(5, 10); vmsg("你不夠資深喔!"); return FULLUPDATE; |