summaryrefslogtreecommitdiffstats
path: root/mbbsd/board.c
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-02-26 22:58:33 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-02-26 22:58:33 +0800
commit53e2d12b130e0f1188cc4cb26c07c5276c4e0d7a (patch)
tree7e40caac5c5be5e2a65c1c0adda32dec3eb91ae2 /mbbsd/board.c
parentac876ae661faf4051c79ddfb887bd525af97c28d (diff)
downloadpttbbs-53e2d12b130e0f1188cc4cb26c07c5276c4e0d7a.tar
pttbbs-53e2d12b130e0f1188cc4cb26c07c5276c4e0d7a.tar.gz
pttbbs-53e2d12b130e0f1188cc4cb26c07c5276c4e0d7a.tar.bz2
pttbbs-53e2d12b130e0f1188cc4cb26c07c5276c4e0d7a.tar.lz
pttbbs-53e2d12b130e0f1188cc4cb26c07c5276c4e0d7a.tar.xz
pttbbs-53e2d12b130e0f1188cc4cb26c07c5276c4e0d7a.tar.zst
pttbbs-53e2d12b130e0f1188cc4cb26c07c5276c4e0d7a.zip
you can add 'group' into myfavorite now
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@676 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r--mbbsd/board.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 28b1bc71..a7c8b289 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.82 2003/02/20 16:12:12 in2 Exp $ */
+/* $Id: board.c,v 1.83 2003/02/26 14:58:33 victor Exp $ */
#include "bbs.h"
#define BRC_STRLEN 15 /* Length of board name */
#define BRC_MAXSIZE 24576
@@ -572,7 +572,7 @@ load_boards(char *key)
if ((bptr = SHM->bsorted[type][i]) == NULL)
continue;
n = (int)(bptr - bcache);
- if (!bptr->brdname[0] || bptr->brdattr & BRD_GROUPBOARD ||
+ if (!bptr->brdname[0] || (yank_flag != 0 && bptr->brdattr & BRD_GROUPBOARD) ||
!((state = Ben_Perm(bptr)) || (currmode & MODE_MENU)) ||
(yank_flag == 0 && !(favbuf[n] & BRD_FAV)) ||
(yank_flag == 1 && !zapbuf[n]) ||
@@ -848,11 +848,13 @@ choose_board(int newflag)
brdnum = -1;
continue;
}
+ /* Victor: it seams unused ?
if (yank_flag < 2) {
brdnum = -1;
yank_flag++;
continue;
}
+ */
if (HAS_PERM(PERM_SYSOP) || (currmode & MODE_MENU)) {
if (m_newbrd(0) == -1)
break;
@@ -1187,7 +1189,13 @@ choose_board(int newflag)
setutmpbid(ptr->bid);
free(nbrd);
nbrd = NULL;
- choose_board(0);
+ if (yank_flag == 0 ) {
+ yank_flag = 1;
+ choose_board(0);
+ yank_flag = 0;
+ }
+ else
+ choose_board(0);
currmode = currmodetmp; /* 離開板板後就把權限拿掉喔 */
num = tmp1;
class_bid = bidtmp;