From 44b5791441596b3b6108c7f2771a9ae1ebfb985b Mon Sep 17 00:00:00 2001 From: in2 Date: Wed, 28 Apr 2004 11:39:56 +0000 Subject: dirty hack: exit if ] at last article git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1881 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/read.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mbbsd') diff --git a/mbbsd/read.c b/mbbsd/read.c index 72f7c837..68014749 100644 --- a/mbbsd/read.c +++ b/mbbsd/read.c @@ -667,6 +667,11 @@ i_read_key(onekey_t * rcmdlist, keeploc_t * locmem, break; case RELATE_NEXT: new_ln = thread(locmem, RELATE_NEXT); + /* XXX: 讀到最後一篇要跳出來 */ + if( new_ln == locmem->crs_ln ){ + default_ch = 0; + return FULLUPDATE; + } break; case RELATE_FIRST: new_ln = thread(locmem, RELATE_FIRST); -- cgit v1.2.3