summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-18 20:45:51 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-18 20:45:51 +0800
commit87936d2c014265f645c0463585270f11b7326d5c (patch)
treee4619a466991fd25662aedc8899216af79e6efb3
parent56b00657b21c0d9ac3208cb9053fcc91e8345279 (diff)
downloadpttbbs-87936d2c014265f645c0463585270f11b7326d5c.tar
pttbbs-87936d2c014265f645c0463585270f11b7326d5c.tar.gz
pttbbs-87936d2c014265f645c0463585270f11b7326d5c.tar.bz2
pttbbs-87936d2c014265f645c0463585270f11b7326d5c.tar.lz
pttbbs-87936d2c014265f645c0463585270f11b7326d5c.tar.xz
pttbbs-87936d2c014265f645c0463585270f11b7326d5c.tar.zst
pttbbs-87936d2c014265f645c0463585270f11b7326d5c.zip
When searching first article with same subject, stop only after 200 mismatch
(reset counter every time) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2340 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/read.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c
index bfb3f430..3e665913 100644
--- a/mbbsd/read.c
+++ b/mbbsd/read.c
@@ -287,8 +287,10 @@ thread(keeploc_t * locmem, int stypen)
if( stypen & RS_FIRST ){
if( !strncmp(fh.title, key, PROPER_TITLE_LEN) )
break;
- else if( !strncmp(&fh.title[4], key, PROPER_TITLE_LEN) )
+ else if( !strncmp(&fh.title[4], key, PROPER_TITLE_LEN) ) {
amatch = new_ln;
+ jump = 200; /* 當搜尋同主題第一篇, 連續找不到 200 篇才停 */
+ }
}
else if( !strncmp(subject(fh.title), key, PROPER_TITLE_LEN) )
break;