summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-14 14:00:37 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-14 14:00:37 +0800
commitc87da8855f7f3edcd1fba6578a2c3f809cad8dc8 (patch)
treeb1d4eb943602e57e4ab5b44e6d8d265a5a228b89 /mbbsd
parent350e701d38798b0227168a1e8ab009baa7438819 (diff)
downloadpttbbs-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')
-rw-r--r--mbbsd/bbs.c9
-rw-r--r--mbbsd/read.c6
2 files changed, 14 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
diff --git a/mbbsd/read.c b/mbbsd/read.c
index 02292db5..1629a9d1 100644
--- a/mbbsd/read.c
+++ b/mbbsd/read.c
@@ -627,6 +627,12 @@ i_read_key(const onekey_t * rcmdlist, keeploc_t * locmem,
new_top = 0;
break;
+ /* add home(top entry) support? */
+ case KEY_HOME:
+ new_ln = 0;
+ new_top = 0;
+ break;
+
case KEY_END:
case '$':
new_ln = last_line;