summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-13 20:51:57 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-13 20:51:57 +0800
commit3bde5d9d7539c836dcbfbe8c6c0ccf3de9182621 (patch)
treea84b5b53a416f6acf292c07a19e4610f189b6782 /mbbsd
parent988c1a522b7715a3c908d55d2264a9d1eb892105 (diff)
downloadpttbbs-3bde5d9d7539c836dcbfbe8c6c0ccf3de9182621.tar
pttbbs-3bde5d9d7539c836dcbfbe8c6c0ccf3de9182621.tar.gz
pttbbs-3bde5d9d7539c836dcbfbe8c6c0ccf3de9182621.tar.bz2
pttbbs-3bde5d9d7539c836dcbfbe8c6c0ccf3de9182621.tar.lz
pttbbs-3bde5d9d7539c836dcbfbe8c6c0ccf3de9182621.tar.xz
pttbbs-3bde5d9d7539c836dcbfbe8c6c0ccf3de9182621.tar.zst
pttbbs-3bde5d9d7539c836dcbfbe8c6c0ccf3de9182621.zip
color fix
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1975 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/board.c3
-rw-r--r--mbbsd/fav.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 983cc746..d30c8945 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -508,6 +508,7 @@ show_brdlist(int head, int clsflag, int newflag)
else if (ptr->myattr & NBRD_FOLDER) {
number = get_data_number(get_fav_folder(getfolder(ptr->bid)));
priv = ' ';
+ favcolor = !(cuser.uflag2 & FAVNOHILIGHT) ? "\033[1;36m" : "";
brdname = "MyFavFolder";
class = "¥Ø¿ý";
icon = "¡¼";
@@ -516,6 +517,7 @@ show_brdlist(int head, int clsflag, int newflag)
else if (!HasPerm(B_BH(ptr))) {
number = -1;
priv = ' ';
+ favcolor = !(cuser.uflag2 & FAVNOHILIGHT) ? "\033[1;36m" : "";
brdname = "Unknown??";
class = "ÁôªO";
icon = "¡H";
@@ -526,7 +528,6 @@ show_brdlist(int head, int clsflag, int newflag)
}
mark = "";
- color = "";
bm = "";
nuser = 0;
}
diff --git a/mbbsd/fav.c b/mbbsd/fav.c
index c5bd6c0d..eca8824b 100644
--- a/mbbsd/fav.c
+++ b/mbbsd/fav.c
@@ -753,7 +753,7 @@ static void fav_dosomething_tagged_item(fav_t *fp, int (*act)(fav_t *, fav_type_
{
int i;
for(i = 0; i < fp->DataTail; i++){
- if (is_set_attr(&fp->favh[i], FAVH_FAV) && is_set_attr(&fp->favh[i], FAVH_TAG))
+ if (is_set_attr(&fp->favh[i], FAVH_FAV | FAVH_TAG))
if ((*act)(fp, &fp->favh[i]) < 0)
break;
}