summaryrefslogtreecommitdiffstats
path: root/mbbsd/mail.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-09 23:35:48 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-09 23:35:48 +0800
commitf680ef20c2d16966a408c56608b28c1e014c2105 (patch)
treec2fcf02c6d4cb8147e9ea8f5ed219348b9264970 /mbbsd/mail.c
parent2320c0c0743af362779009ae09dee8053df9738b (diff)
downloadpttbbs-f680ef20c2d16966a408c56608b28c1e014c2105.tar
pttbbs-f680ef20c2d16966a408c56608b28c1e014c2105.tar.gz
pttbbs-f680ef20c2d16966a408c56608b28c1e014c2105.tar.bz2
pttbbs-f680ef20c2d16966a408c56608b28c1e014c2105.tar.lz
pttbbs-f680ef20c2d16966a408c56608b28c1e014c2105.tar.xz
pttbbs-f680ef20c2d16966a408c56608b28c1e014c2105.tar.zst
pttbbs-f680ef20c2d16966a408c56608b28c1e014c2105.zip
- restrict VIOLATE_LAW cross-posting
- add owner/delete in SAFEDEL title as log git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4118 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r--mbbsd/mail.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index 545027ca..60d2b34f 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -1422,6 +1422,14 @@ mail_cross_post(int ent, fileheader_t * fhdr, const char *direct)
char genbuf[200];
char genbuf2[4];
+ // XXX TODO 為避免違法使用者大量對申訴板轉文,限定每次發文量。
+ if (HasUserPerm(PERM_VIOLATELAW))
+ {
+ static int violatecp = 0;
+ if (violatecp++ >= MAX_CROSSNUM)
+ return DONOTHING;
+ }
+
move(2, 0);
clrtoeol();
if (postrecord.times > 1)