summaryrefslogtreecommitdiffstats
path: root/mbbsd/mail.c
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-07-25 23:17:18 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-07-25 23:17:18 +0800
commite8b7db8875e3cba60b0ec8742b0cb7cc63c0bbde (patch)
tree1ba549a3702ad232a795c1527ef73fdf274eebe5 /mbbsd/mail.c
parent540472d231db4088e050b32737dee45f3ed07235 (diff)
downloadpttbbs-e8b7db8875e3cba60b0ec8742b0cb7cc63c0bbde.tar
pttbbs-e8b7db8875e3cba60b0ec8742b0cb7cc63c0bbde.tar.gz
pttbbs-e8b7db8875e3cba60b0ec8742b0cb7cc63c0bbde.tar.bz2
pttbbs-e8b7db8875e3cba60b0ec8742b0cb7cc63c0bbde.tar.lz
pttbbs-e8b7db8875e3cba60b0ec8742b0cb7cc63c0bbde.tar.xz
pttbbs-e8b7db8875e3cba60b0ec8742b0cb7cc63c0bbde.tar.zst
pttbbs-e8b7db8875e3cba60b0ec8742b0cb7cc63c0bbde.zip
add badposts as post/vote limit
show post limits on board config git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3386 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r--mbbsd/mail.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index 52b03cbb..1fca15ee 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -1291,6 +1291,7 @@ mail_cross_post(int ent, fileheader_t * fhdr, const char *direct)
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 > ((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);