diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-07-03 11:26:34 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-07-03 11:26:34 +0800 |
commit | baa32eb2319a30084c5f2144f50db4a227033afb (patch) | |
tree | 1bb13e42d6beaf0833aeb12338fda51eb67ee616 | |
parent | ce1f8f7e958a3cde5202390a41e6a5f9902ec7cc (diff) | |
download | pttbbs-baa32eb2319a30084c5f2144f50db4a227033afb.tar pttbbs-baa32eb2319a30084c5f2144f50db4a227033afb.tar.gz pttbbs-baa32eb2319a30084c5f2144f50db4a227033afb.tar.bz2 pttbbs-baa32eb2319a30084c5f2144f50db4a227033afb.tar.lz pttbbs-baa32eb2319a30084c5f2144f50db4a227033afb.tar.xz pttbbs-baa32eb2319a30084c5f2144f50db4a227033afb.tar.zst pttbbs-baa32eb2319a30084c5f2144f50db4a227033afb.zip |
fix '/' in fav mode
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@1000 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/board.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index 845134fc..7b959286 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -1,4 +1,4 @@ -/* $Id: board.c,v 1.130 2003/06/09 03:18:17 victor Exp $ */ +/* $Id: board.c,v 1.131 2003/07/03 03:26:34 victor Exp $ */ #include "bbs.h" #define BRC_STRLEN 15 /* Length of board name */ #define BRC_MAXSIZE 24576 @@ -208,10 +208,14 @@ brc_unread(char *fname, int bnum, int *blist) return 0; } -#define BRD_UNREAD 1 -#define BRD_FAV 2 -#define BRD_LINE 4 -#define BRD_TAG 8 +#define BRD_UNREAD 1 +#define BRD_FAV 2 +#define BRD_LINE 4 +#define BRD_TAG 8 +#define BRD_GRP_HEADER 16 + +#define MAX_GRP_BRD 16 +#define MAX_GRP #define FAVNB ".favnb" #define FAV3 ".fav3" @@ -762,13 +766,13 @@ load_boards(char *key) nbrd = (boardstat_t *)malloc(sizeof(boardstat_t) * fav->nDatas); for( i = 0 ; i < fav->nDatas ; ++i ){ if( fav->b[i].attr & BRD_FAV ){ - if( fav->b[i].attr & BRD_LINE ) + if( fav->b[i].attr & BRD_LINE && !key[0]) addnewbrdstat(fav->b[i].bid - 1, BRD_FAV | BRD_LINE); else{ bptr = &bcache[ fav->b[i].bid - 1 ]; - if( (state = Ben_Perm(bptr)) ) + if( (state = Ben_Perm(bptr)) && (!key[0] || strcasestr(bptr->title, key))) addnewbrdstat(fav->b[i].bid - 1, state); - } + } } } byMALLOC = 0; |