diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-14 14:00:37 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-14 14:00:37 +0800 |
commit | c87da8855f7f3edcd1fba6578a2c3f809cad8dc8 (patch) | |
tree | b1d4eb943602e57e4ab5b44e6d8d265a5a228b89 /mbbsd/bbs.c | |
parent | 350e701d38798b0227168a1e8ab009baa7438819 (diff) | |
download | pttbbs-c87da8855f7f3edcd1fba6578a2c3f809cad8dc8.tar pttbbs-c87da8855f7f3edcd1fba6578a2c3f809cad8dc8.tar.gz pttbbs-c87da8855f7f3edcd1fba6578a2c3f809cad8dc8.tar.bz2 pttbbs-c87da8855f7f3edcd1fba6578a2c3f809cad8dc8.tar.lz pttbbs-c87da8855f7f3edcd1fba6578a2c3f809cad8dc8.tar.xz pttbbs-c87da8855f7f3edcd1fba6578a2c3f809cad8dc8.tar.zst pttbbs-c87da8855f7f3edcd1fba6578a2c3f809cad8dc8.zip |
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
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r-- | mbbsd/bbs.c | 9 |
1 files changed, 8 insertions, 1 deletions
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 |