summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-12 21:41:00 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-12 21:41:00 +0800
commit2f07023d62c096f4ad50b57c1ba21fca6f288177 (patch)
tree552baa878526510f2e3da8daef9801955bcd7afb
parent96f4b17ba03fd229f97ec37b7e9e928a87217a55 (diff)
downloadpttbbs-2f07023d62c096f4ad50b57c1ba21fca6f288177.tar
pttbbs-2f07023d62c096f4ad50b57c1ba21fca6f288177.tar.gz
pttbbs-2f07023d62c096f4ad50b57c1ba21fca6f288177.tar.bz2
pttbbs-2f07023d62c096f4ad50b57c1ba21fca6f288177.tar.lz
pttbbs-2f07023d62c096f4ad50b57c1ba21fca6f288177.tar.xz
pttbbs-2f07023d62c096f4ad50b57c1ba21fca6f288177.tar.zst
pttbbs-2f07023d62c096f4ad50b57c1ba21fca6f288177.zip
do select fix
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1743 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/bbs.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 74500813..2fe205e2 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -321,10 +321,10 @@ do_select(int ent, fileheader_t * fhdr, char *direct)
completeboard_permission,
completeboard_getname);
if (bname[0] == '\0' || !(i = getbnum(bname)))
- return PART_REDRAW;
+ return FULLUPDATE;
bh = getbcache(i);
if (!HasPerm(bh))
- return PART_REDRAW;
+ return FULLUPDATE;
strlcpy(bname, bh->brdname, sizeof(bname));
brc_update();
currbid = i;
@@ -334,7 +334,7 @@ do_select(int ent, fileheader_t * fhdr, char *direct)
move(2, 0);
clrtoeol();
outs(err_bid);
- return PART_REDRAW;
+ return FULLUPDATE;
}
setutmpbid(currbid);
@@ -2321,7 +2321,6 @@ board_etc()
static int
push_bottom(int ent, fileheader_t * fhdr, char *direct)
{
-#if 0
int num, i;
char buf[256];
if ((currmode & MODE_DIGEST) || !(currmode & MODE_BOARD))
@@ -2356,9 +2355,8 @@ push_bottom(int ent, fileheader_t * fhdr, char *direct)
delete_record(buf, sizeof(fileheader_t), i+1);
}
}
- setbottomtotal(currbid);
+ //setbottomtotal(currbid);
touchdircache(currbid);
-#endif
return DIRCHANGED;
}