diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-30 23:09:34 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-30 23:09:34 +0800 |
commit | 09c2e46468e99d827c85ef55532535bf2bf24ca2 (patch) | |
tree | b4afffe8c9a6a441c11e038fa8266bcc98448931 | |
parent | 02913ea88db4c2402933f5c02e9bf9cd248f7064 (diff) | |
download | pttbbs-09c2e46468e99d827c85ef55532535bf2bf24ca2.tar pttbbs-09c2e46468e99d827c85ef55532535bf2bf24ca2.tar.gz pttbbs-09c2e46468e99d827c85ef55532535bf2bf24ca2.tar.bz2 pttbbs-09c2e46468e99d827c85ef55532535bf2bf24ca2.tar.lz pttbbs-09c2e46468e99d827c85ef55532535bf2bf24ca2.tar.xz pttbbs-09c2e46468e99d827c85ef55532535bf2bf24ca2.tar.zst pttbbs-09c2e46468e99d827c85ef55532535bf2bf24ca2.zip |
* remove more bid assess(good/bad sale) stuff
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4719 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | include/pttstruct.h | 4 | ||||
-rw-r--r-- | mbbsd/assess.c | 8 | ||||
-rw-r--r-- | mbbsd/bbs.c | 18 | ||||
-rw-r--r-- | mbbsd/board.c | 10 | ||||
-rw-r--r-- | mbbsd/mbbsd.c | 2 |
5 files changed, 2 insertions, 40 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h index 200f66ff..849be259 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -130,8 +130,8 @@ typedef struct userec_t { uint8_t goodpost; /* 評價為好文章數 */ uint8_t badpost; /* 評價為壞文章數 */ - uint8_t goodsale; /* 競標 好的評價 */ - uint8_t badsale; /* 競標 壞的評價 */ + uint8_t goodsale; /* deprecated: 競標 好的評價 */ + uint8_t badsale; /* deprecated: 競標 壞的評價 */ char myangel[IDLEN+1]; /* 我的小天使 */ char pad2; uint16_t chess_elo_rating; /* 象棋等級分 */ diff --git a/mbbsd/assess.c b/mbbsd/assess.c index 5fa25f0f..3035a8d4 100644 --- a/mbbsd/assess.c +++ b/mbbsd/assess.c @@ -28,8 +28,6 @@ int inc_##_attr(const char *userid, int num) \ modify_column(goodpost); /* inc_goodpost */ modify_column(badpost); /* inc_badpost */ -modify_column(goodsale); /* inc_goodsale */ -modify_column(badsale); /* inc_badsale */ #if 0 //unused function void set_assess(const char *userid, unsigned char num, int type) @@ -44,12 +42,6 @@ void set_assess(const char *userid, unsigned char num, int type) case BADPOST: xuser.badpost = num; break; - case GOODSALE: - xuser.goodsale = num; - break; - case BADSALE: - xuser.badsale = num; - break; } passwd_sync_update(uid, &xuser); } diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index c028f4cf..39d83aaf 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -2551,24 +2551,6 @@ do_bid(int ent, fileheader_t * fhdr, const boardheader_t *bp, const char *direc {以Ptt幣自動扣款 }*/ prints("恭喜 %s 以 %d 得標!", bidinfo.userid, bidinfo.high); -#ifdef ASSESS - if (!(bidinfo.flag & SALE_COMMENTED) && strcmp(bidinfo.userid, currutmp->userid) == 0){ - char tmp = vans("您對於這次交易的評價如何? 1:佳 2:欠佳 3:普通[Q]"); - if ('1' <= tmp && tmp <= '3'){ - switch(tmp){ - case 1: - inc_goodsale(bidinfo.userid, 1); - break; - case 2: - inc_badsale(bidinfo.userid, 1); - break; - } - bidinfo.flag |= SALE_COMMENTED; - - substitute_record(fpath, &bidinfo, sizeof(bidinfo), 1); - } - } -#endif } else outs("無人得標!"); pressanykey(); diff --git a/mbbsd/board.c b/mbbsd/board.c index 10e743a3..0b800e87 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -219,16 +219,6 @@ b_post_note(void) else if (yn[0] == 'd') unlink(buf); - setbfile(buf, currboard, FN_POST_BID); - if (more(buf, NA) == -1) - more("etc/" FN_POST_BID, NA); - getdata(b_lines - 2, 0, "自訂競標文章注意事項: (y)編輯/(d)刪除/(n)不變? [y/N/d]:", - yn, sizeof(yn), LCECHO); - if (yn[0] == 'y') - veditfile(buf); - else if (yn[0] == 'd') - unlink(buf); - return FULLUPDATE; } diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 93643dbc..b8f397e8 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -219,8 +219,6 @@ u_exit(const char *mode) /* cuser.goodpost = currutmp->goodpost; cuser.badpost = currutmp->badpost; - cuser.goodsale = currutmp->goodsale; - cuser.badsale = currutmp->badsale; */ // no need because in later passwd_sync_update will reload money from SHM. |