From c87da8855f7f3edcd1fba6578a2c3f809cad8dc8 Mon Sep 17 00:00:00 2001 From: piaip Date: Tue, 14 Jun 2005 06:00:37 +0000 Subject: fix a bug that END usually gets "no articles" in ALLPOST. read.c: add HOME to 1st article. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2839 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'mbbsd/bbs.c') diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index bfd3108c..e9b66a0f 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -452,7 +452,14 @@ do_crosspost(const char *brd, fileheader_t *postfile, const char *fpath) postfile->filemode = FILE_LOCAL; setbdir(genbuf, brd); if (append_record(genbuf, &fh, sizeof(fileheader_t)) != -1) { - touchbtotal(getbnum(brd)); + if(strcmp(brd, ALLPOST) == 0) + { + /* quick update */ + int bid = getbnum(ALLPOST); + touchbpostnum(bid, 1); + SHM->lastposttime[bid - 1] = now; + } else + touchbtotal(getbnum(brd)); } } static void -- cgit v1.2.3