summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-10-28 22:22:26 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-10-28 22:22:26 +0800
commit72587298f0765b1a719eb666240a5c0b8303cdc1 (patch)
tree53087d75fad87505e241021a34695c57f24def3f
parenta60ab17ad75772a0aad9751cb1d5a288d5682b28 (diff)
downloadpttbbs-72587298f0765b1a719eb666240a5c0b8303cdc1.tar
pttbbs-72587298f0765b1a719eb666240a5c0b8303cdc1.tar.gz
pttbbs-72587298f0765b1a719eb666240a5c0b8303cdc1.tar.bz2
pttbbs-72587298f0765b1a719eb666240a5c0b8303cdc1.tar.lz
pttbbs-72587298f0765b1a719eb666240a5c0b8303cdc1.tar.xz
pttbbs-72587298f0765b1a719eb666240a5c0b8303cdc1.tar.zst
pttbbs-72587298f0765b1a719eb666240a5c0b8303cdc1.zip
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@1271 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/assess.c6
-rw-r--r--pttbbs/mbbsd/bbs.c2
-rw-r--r--pttbbs/mbbsd/user.c11
3 files changed, 14 insertions, 5 deletions
diff --git a/pttbbs/mbbsd/assess.c b/pttbbs/mbbsd/assess.c
index 707e221e..6797f64d 100644
--- a/pttbbs/mbbsd/assess.c
+++ b/pttbbs/mbbsd/assess.c
@@ -26,9 +26,9 @@ void inc_badpost(int uid, int num)
inc(&xuser.badpost, num);
if(!(xuser.badpost % 10))
{
- post_violatelaw(xcuser.userid, "Ptt 系統警察", "劣文累計十篇", "罰單一張");
- mail_violatelaw(xcuser.userid, "Ptt 系統警察", "劣文累計十篇", "罰單一張");
- xcuser.userlevel |= PERM_VIOLATELAW;
+ post_violatelaw(xuser.userid, "Ptt 系統警察", "劣文累計十篇", "罰單一張");
+ mail_violatelaw(xuser.userid, "Ptt 系統警察", "劣文累計十篇", "罰單一張");
+ xuser.userlevel |= PERM_VIOLATELAW;
}
passwd_update(uid, &xuser);
}
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c
index b28524fe..3fa2a048 100644
--- a/pttbbs/mbbsd/bbs.c
+++ b/pttbbs/mbbsd/bbs.c
@@ -1614,8 +1614,10 @@ mark_post(int ent, fileheader_t * fhdr, char *direct)
#ifdef ASSESS
if (!(fhdr->filemode & FILE_BID)){
if (fhdr->filemode & FILE_MARKED)
+ {
if(!(currbrdattr&BRD_BAD))
inc_goodpost(searchuser(fhdr->owner), fhdr->recommend / 10);
+ }
else
inc_goodpost(searchuser(fhdr->owner), -1 * (fhdr->recommend / 10));
}
diff --git a/pttbbs/mbbsd/user.c b/pttbbs/mbbsd/user.c
index 16303938..bcb4978c 100644
--- a/pttbbs/mbbsd/user.c
+++ b/pttbbs/mbbsd/user.c
@@ -299,7 +299,7 @@ uinfo_query(userec_t * u, int real, int unum)
if (ans[0] == '1' || ans[0] == '3') {
clear();
- i = 2;
+ i = 1;
move(i++, 0);
outs(msg_uid);
outs(x.userid);
@@ -400,11 +400,18 @@ uinfo_query(userec_t * u, int real, int unum)
if (getdata_str(i++, 0, "上線次數:", buf, 10, DOECHO, genbuf))
if ((fail = atoi(buf)) >= 0)
x.numlogins = fail;
-
snprintf(genbuf, sizeof(genbuf), "%d", u->numposts);
if (getdata_str(i++, 0, "文章數目:", buf, 10, DOECHO, genbuf))
if ((fail = atoi(buf)) >= 0)
x.numposts = fail;
+ snprintf(genbuf, sizeof(genbuf), "%d", u->goodpost);
+ if (getdata_str(i++, 0, "優良文章數:", buf, 10, DOECHO, genbuf))
+ if ((fail = atoi(buf)) >= 0)
+ x.goodpost = fail;
+ snprintf(genbuf, sizeof(genbuf), "%d", u->badpost);
+ if (getdata_str(i++, 0, "惡劣文章數:", buf, 10, DOECHO, genbuf))
+ if ((fail = atoi(buf)) >= 0)
+ x.badpost = fail;
snprintf(genbuf, sizeof(genbuf), "%d", u->vl_count);
if (getdata_str(i++, 0, "違法記錄:", buf, 10, DOECHO, genbuf))
if ((fail = atoi(buf)) >= 0)