From 40a656b7ab01bfa140380c7a46b7f88d3ec7b961 Mon Sep 17 00:00:00 2001 From: ptt Date: Thu, 8 Apr 2004 05:07:02 +0000 Subject: push bottom git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1729 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mbbsd/bbs.c') diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 413e1520..d6a6152f 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -2325,7 +2325,10 @@ push_bottom(int ent, fileheader_t * fhdr, char *direct) char buf[256]; if ((currmode & MODE_DIGEST) || !(currmode & MODE_BOARD)) return DONOTHING; - setbfile(buf, currboard, ".BOTTOM"); + if(strstr(direct, ".bottom")) + strcpy(buf, direct); + else + sprintf(buf, "%s.%s", direct, ".bottom"); num = get_num_records(buf, sizeof(fileheader_t)); if(getans(fhdr->filemode & FILE_BOTTOM ? "¨ú®ø¸m©³¤½½§i?(y/N)": @@ -2353,8 +2356,8 @@ push_bottom(int ent, fileheader_t * fhdr, char *direct) } } setbottomtotal(currbid); - substitute_record(direct, fhdr, sizeof(fileheader_t), ent); touchdircache(currbid); + load_fileheader_bottom_cache(currbid, direct); return DIRCHANGED; } -- cgit v1.2.3