From 87936d2c014265f645c0463585270f11b7326d5c Mon Sep 17 00:00:00 2001 From: kcwu Date: Thu, 18 Nov 2004 12:45:51 +0000 Subject: 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 --- mbbsd/read.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mbbsd') 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; -- cgit v1.2.3