summaryrefslogtreecommitdiffstats
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
commita60ab17ad75772a0aad9751cb1d5a288d5682b28 (patch)
tree9e90c120b16ac46f7b8c1a26e753b8475619170c
parent2ff1179386022676b40c967c6a55092aceafda9b (diff)
downloadpttbbs-a60ab17ad75772a0aad9751cb1d5a288d5682b28.tar
pttbbs-a60ab17ad75772a0aad9751cb1d5a288d5682b28.tar.gz
pttbbs-a60ab17ad75772a0aad9751cb1d5a288d5682b28.tar.bz2
pttbbs-a60ab17ad75772a0aad9751cb1d5a288d5682b28.tar.lz
pttbbs-a60ab17ad75772a0aad9751cb1d5a288d5682b28.tar.xz
pttbbs-a60ab17ad75772a0aad9751cb1d5a288d5682b28.tar.zst
pttbbs-a60ab17ad75772a0aad9751cb1d5a288d5682b28.zip
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@1270 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/assess.c6
-rw-r--r--pttbbs/mbbsd/bbs.c17
-rw-r--r--pttbbs/mbbsd/talk.c2
-rw-r--r--pttbbs/mbbsd/user.c2
4 files changed, 20 insertions, 7 deletions
diff --git a/pttbbs/mbbsd/assess.c b/pttbbs/mbbsd/assess.c
index 282af895..707e221e 100644
--- a/pttbbs/mbbsd/assess.c
+++ b/pttbbs/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);
}
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c
index 759f8379..b28524fe 100644
--- a/pttbbs/mbbsd/bbs.c
+++ b/pttbbs/mbbsd/bbs.c
@@ -679,13 +679,15 @@ do_general(int isbid)
#endif
if (strcmp(currboard, "Test") && !ifuseanony) {
prints("這是您的第 %d 篇文章。",++cuser.numposts);
- if(!(postfile.filemode&FILE_BID))
+ if(postfile.filemode&FILE_BID)
+ prints("招標文章沒有稿酬。");
+ else if(currbrdattr&BRD_BAD)
+ prints("違法改進中看板沒有稿酬。");
+ else
{
prints(" 稿酬 %d 銀。",aborted);
demoney(aborted);
}
- else
- prints("招標文章沒有稿酬。");
passwd_update(usernum, &cuser); /* post 數 */
} else
outs("測試信件不列入紀錄,敬請包涵。");
@@ -1612,7 +1614,8 @@ mark_post(int ent, fileheader_t * fhdr, char *direct)
#ifdef ASSESS
if (!(fhdr->filemode & FILE_BID)){
if (fhdr->filemode & FILE_MARKED)
- inc_goodpost(searchuser(fhdr->owner), fhdr->recommend / 10);
+ if(!(currbrdattr&BRD_BAD))
+ inc_goodpost(searchuser(fhdr->owner), fhdr->recommend / 10);
else
inc_goodpost(searchuser(fhdr->owner), -1 * (fhdr->recommend / 10));
}
@@ -1744,7 +1747,11 @@ del_post(int ent, fileheader_t * fhdr, char *direct)
}
#ifdef ASSESS
if (not_owned)
- inc_badpost(searchuser(fhdr->owner), 1);
+ {
+ getdata(1, 40, "惡劣文章?(y/N)", genbuf, 3, LCECHO);
+ if(genbuf[0]=='y')
+ inc_badpost(searchuser(fhdr->owner), 1);
+ }
#endif
cancelpost(fhdr, not_owned);
diff --git a/pttbbs/mbbsd/talk.c b/pttbbs/mbbsd/talk.c
index fd134126..84728632 100644
--- a/pttbbs/mbbsd/talk.c
+++ b/pttbbs/mbbsd/talk.c
@@ -364,7 +364,7 @@ my_query(char *uident)
prints("《上站次數》%d次", muser.numlogins);
move(2, 40);
#ifdef ASSESS
- prints("《文章篇數》%d篇 (佳作%d/劣文%d)\n", muser.numposts, muser.goodpost, muser.badpost);
+ prints("《文章篇數》%d篇 (優:%d/劣:%d)\n", muser.numposts, muser.goodpost, muser.badpost);
#else
prints("《文章篇數》%d篇\n", muser.numposts);
#endif
diff --git a/pttbbs/mbbsd/user.c b/pttbbs/mbbsd/user.c
index c3e63595..16303938 100644
--- a/pttbbs/mbbsd/user.c
+++ b/pttbbs/mbbsd/user.c
@@ -386,7 +386,7 @@ uinfo_query(userec_t * u, int real, int unum)
}
}
snprintf(genbuf, sizeof(genbuf), "%d", x.exmailbox);
- if (getdata_str(i++, 0, "購買信箱數:", buf, sizeof(buf),
+ if (getdata_str(i++, 0, "購買信箱數:", buf, 6,
DOECHO, genbuf))
if ((l = atol(buf)) != 0)
x.exmailbox = (int)l;