summaryrefslogtreecommitdiffstats
path: root/mbbsd/assess.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-10-28 22:13:40 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-10-28 22:13:40 +0800
commit8ace171c5c279b69e105a76a27f33d144a6e6db0 (patch)
tree00e06ecb1debecd55e4e1e62344bbba2bbec094c /mbbsd/assess.c
parentfddb283f9bd5979afeec32d8f18e791e7c924695 (diff)
downloadpttbbs-8ace171c5c279b69e105a76a27f33d144a6e6db0.tar
pttbbs-8ace171c5c279b69e105a76a27f33d144a6e6db0.tar.gz
pttbbs-8ace171c5c279b69e105a76a27f33d144a6e6db0.tar.bz2
pttbbs-8ace171c5c279b69e105a76a27f33d144a6e6db0.tar.lz
pttbbs-8ace171c5c279b69e105a76a27f33d144a6e6db0.tar.xz
pttbbs-8ace171c5c279b69e105a76a27f33d144a6e6db0.tar.zst
pttbbs-8ace171c5c279b69e105a76a27f33d144a6e6db0.zip
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1270 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/assess.c')
-rw-r--r--mbbsd/assess.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mbbsd/assess.c b/mbbsd/assess.c
index 282af895..707e221e 100644
--- a/mbbsd/assess.c
+++ b/mbbsd/assess.c
@@ -24,6 +24,12 @@ void inc_badpost(int uid, int num)
{
passwd_query(uid, &xuser);
inc(&xuser.badpost, num);
+ if(!(xuser.badpost % 10))
+ {
+ post_violatelaw(xcuser.userid, "Ptt 系統警察", "劣文累計十篇", "罰單一張");
+ mail_violatelaw(xcuser.userid, "Ptt 系統警察", "劣文累計十篇", "罰單一張");
+ xcuser.userlevel |= PERM_VIOLATELAW;
+ }
passwd_update(uid, &xuser);
}