diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-10-28 22:22:26 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-10-28 22:22:26 +0800 |
commit | 33b6b249ea1b77005a6d2af64111899e2de6791f (patch) | |
tree | 694422c54e330b57db033d64dec600d6320690c4 /mbbsd/user.c | |
parent | 8ace171c5c279b69e105a76a27f33d144a6e6db0 (diff) | |
download | pttbbs-33b6b249ea1b77005a6d2af64111899e2de6791f.tar pttbbs-33b6b249ea1b77005a6d2af64111899e2de6791f.tar.gz pttbbs-33b6b249ea1b77005a6d2af64111899e2de6791f.tar.bz2 pttbbs-33b6b249ea1b77005a6d2af64111899e2de6791f.tar.lz pttbbs-33b6b249ea1b77005a6d2af64111899e2de6791f.tar.xz pttbbs-33b6b249ea1b77005a6d2af64111899e2de6791f.tar.zst pttbbs-33b6b249ea1b77005a6d2af64111899e2de6791f.zip |
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1271 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r-- | mbbsd/user.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index 16303938..bcb4978c 100644 --- a/mbbsd/user.c +++ b/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) |