diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-05 15:47:09 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-05 15:47:09 +0800 |
commit | 9cbf93e41956fddeadf60c0d454da12ec8fc2487 (patch) | |
tree | 2576ba45e8b3715550a5e70637dcf5502a5c43cc /mbbsd | |
parent | 57bb5ce6886b3e2b19a6376e0173a83efc8a1648 (diff) | |
download | pttbbs-9cbf93e41956fddeadf60c0d454da12ec8fc2487.tar pttbbs-9cbf93e41956fddeadf60c0d454da12ec8fc2487.tar.gz pttbbs-9cbf93e41956fddeadf60c0d454da12ec8fc2487.tar.bz2 pttbbs-9cbf93e41956fddeadf60c0d454da12ec8fc2487.tar.lz pttbbs-9cbf93e41956fddeadf60c0d454da12ec8fc2487.tar.xz pttbbs-9cbf93e41956fddeadf60c0d454da12ec8fc2487.tar.zst pttbbs-9cbf93e41956fddeadf60c0d454da12ec8fc2487.zip |
fix file.multi.money issue
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2986 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/read.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c index 85c65c66..638c060b 100644 --- a/mbbsd/read.c +++ b/mbbsd/read.c @@ -454,16 +454,22 @@ select_read(const keeploc_t * locmem, int sr_mode) if(currstat != RMAIL && ( !getdata(b_lines, 0, (currmode & MODE_SELECT) ? - "增加條件 推文數: ":"最低推文數: ", + "增加條件 推文數: ":"搜尋推文數高於多少的文章: ", keyword, 7, LCECHO) || (n_recommend = atoi(keyword)) <= 0 )) return READ_REDRAW; } else if (sr_mode & RS_MONEY) { + /* 增加條件應該不會動? see view_postmoney */ + if (currmode & MODE_SELECT) + { + vmsg("請先離開目前的選擇/搜尋模式再搜尋文章價格"); + return READ_REDRAW; + } if(currstat != RMAIL && ( !getdata(b_lines, 0, - (currmode & MODE_SELECT) ? - "增加條件 稿籌: ":"最低稿籌: ", + (currmode & MODE_SELECT) ? // 先留著吧,雖然應該不用 + "增加條件 文章價格: ":"搜尋價格高於多少的文章: ", keyword, 7, LCECHO) || (n_money = atoi(keyword)) <= 0 )) return READ_REDRAW; strcat(keyword, "M"); @@ -525,7 +531,9 @@ select_read(const keeploc_t * locmem, int sr_mode) fhs[i].recommend < n_recommend ) continue; else if ((sr_mode & RS_MONEY) && - fhs[i].multi.money < n_money ) + // see view_postmoney + ( (fhs[i].filemode & (FILE_BOTTOM|FILE_ANONYMOUS)) || + (fhs[i].multi.money < n_money))) continue; ++count; if(p == NULL) |