summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-06-16 10:44:51 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-06-16 10:44:51 +0800
commitf7f94492d83cd0a7f70f4eda0f64e208aa8084fa (patch)
tree30b28c6a0e94724aa741fbbc5cf01671b1295658 /mbbsd
parent285648fcbae02d0e8248162aebc886c9c35b1f23 (diff)
downloadpttbbs-f7f94492d83cd0a7f70f4eda0f64e208aa8084fa.tar
pttbbs-f7f94492d83cd0a7f70f4eda0f64e208aa8084fa.tar.gz
pttbbs-f7f94492d83cd0a7f70f4eda0f64e208aa8084fa.tar.bz2
pttbbs-f7f94492d83cd0a7f70f4eda0f64e208aa8084fa.tar.lz
pttbbs-f7f94492d83cd0a7f70f4eda0f64e208aa8084fa.tar.xz
pttbbs-f7f94492d83cd0a7f70f4eda0f64e208aa8084fa.tar.zst
pttbbs-f7f94492d83cd0a7f70f4eda0f64e208aa8084fa.zip
fix possible bug on posting limits
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3370 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/mail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index 1f90b980..b7011872 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -1271,7 +1271,7 @@ mail_cross_post(int ent, fileheader_t * fhdr, const char *direct)
ent = getbnum(xboard);
assert(0<=ent-1 && ent-1<MAX_BOARD);
- if ( !((currmode & MODE_BOARD) || HasUserPerm(PERM_SYSOP)) &&
+ if ( !(HasUserPerm(PERM_SYSOP)) &&
(cuser.firstlogin > (now - (time4_t)bcache[ent - 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)) ) {