summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-27 13:10:21 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-27 13:10:21 +0800
commit78611c8b4983d348876b2fd922935b118e39ac9a (patch)
tree00c097f49d7f25e09f19a783d36a410fcef6210c
parent9a55e364e3ea963332463f0b6db1ad8dc1cc1c06 (diff)
downloadpttbbs-78611c8b4983d348876b2fd922935b118e39ac9a.tar
pttbbs-78611c8b4983d348876b2fd922935b118e39ac9a.tar.gz
pttbbs-78611c8b4983d348876b2fd922935b118e39ac9a.tar.bz2
pttbbs-78611c8b4983d348876b2fd922935b118e39ac9a.tar.lz
pttbbs-78611c8b4983d348876b2fd922935b118e39ac9a.tar.xz
pttbbs-78611c8b4983d348876b2fd922935b118e39ac9a.tar.zst
pttbbs-78611c8b4983d348876b2fd922935b118e39ac9a.zip
fix favline
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@729 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/board.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index f7ab6b57..ec2fd372 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.102 2003/03/26 17:51:53 victor Exp $ */
+/* $Id: board.c,v 1.103 2003/03/27 05:10:21 victor Exp $ */
#include "bbs.h"
#define BRC_STRLEN 15 /* Length of board name */
#define BRC_MAXSIZE 24576
@@ -515,7 +515,8 @@ save_brdbuf(void)
#endif
for( r = w = 0 ; r < fav->nDatas ; ++r )
- if( fav->b[r].attr & BRD_FAV && bcache[fav->b[r].bid - 1].brdname[0])
+ if( ( fav->b[r].attr & BRD_LINE ) ||
+ (fav->b[r].attr & BRD_FAV && bcache[fav->b[r].bid - 1].brdname[0]))
fav->b[w++] = fav->b[r];
fav->nDatas = w;
setuserfile(fname, ".fav3");
@@ -1235,10 +1236,9 @@ choose_board(int newflag)
break;
}
setfav(0, BRD_FAV | BRD_LINE, 1, 0);
- nbrd[brdnum].bid = fav->nLines;
- nbrd[brdnum].myattr = (BRD_FAV | BRD_LINE);
movefav(brdnum++, num);
favchange = 1;
+ brdnum = -1;
head = 9999;
}
break;
@@ -1253,9 +1253,9 @@ choose_board(int newflag)
}
else{
setfav(nbrd[num].bid, BRD_FAV, 2, 0);
- nbrd[num].myattr ^= BRD_FAV;
}
favchange = 1;
+ brdnum = -1;
head = 9999;
}
break;