summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-18 21:21:55 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-18 21:21:55 +0800
commit13601c52fd1e9b6784a5776c0f7bdd0b9f91524b (patch)
tree294aa99b7af69c13b2988fb08ac3a60d4831a733 /mbbsd
parent893f1cf4813ae171c5e18b6b257bad59a314eba8 (diff)
downloadpttbbs-13601c52fd1e9b6784a5776c0f7bdd0b9f91524b.tar
pttbbs-13601c52fd1e9b6784a5776c0f7bdd0b9f91524b.tar.gz
pttbbs-13601c52fd1e9b6784a5776c0f7bdd0b9f91524b.tar.bz2
pttbbs-13601c52fd1e9b6784a5776c0f7bdd0b9f91524b.tar.lz
pttbbs-13601c52fd1e9b6784a5776c0f7bdd0b9f91524b.tar.xz
pttbbs-13601c52fd1e9b6784a5776c0f7bdd0b9f91524b.tar.zst
pttbbs-13601c52fd1e9b6784a5776c0f7bdd0b9f91524b.zip
no unread mark befor 'unknown'
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2001 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/board.c70
1 files changed, 36 insertions, 34 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index c7968d67..0075e8ec 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -485,6 +485,13 @@ show_brdlist(int head, int clsflag, int newflag)
if (class_bid == 1)
prints(" ");
+ else {
+ if (!GROUPOP() && !HasPerm(B_BH(ptr))) {
+ prints("%5d Unknown?? 隱板 ?這個板是隱板", head);
+ continue;
+ }
+ }
+
if (!newflag) {
prints("%5d%c%s", head,
!(B_BH(ptr)->brdattr & BRD_HIDE) ? ' ' :
@@ -500,40 +507,35 @@ show_brdlist(int head, int clsflag, int newflag)
unread[ptr->myattr & NBRD_UNREAD ? 1 : 0]);
}
if (class_bid != 1) {
- if (!GROUPOP() && !HasPerm(B_BH(ptr))) {
- prints("Unknown?? 隱板 ?這個板是隱板");
- }
- else {
- prints("%s%-13s\033[m%s%5.5s\033[0;37m%2.2s\033[m"
- "%-34.34s",
- ((!(cuser.uflag2 & FAVNOHILIGHT) &&
- getboard(ptr->bid) != NULL))? "\033[1;36m" : "",
- B_BH(ptr)->brdname,
- color[(unsigned int)
- (B_BH(ptr)->title[1] + B_BH(ptr)->title[2] +
- B_BH(ptr)->title[3] + B_BH(ptr)->title[0]) & 07],
- B_BH(ptr)->title, B_BH(ptr)->title + 5, B_BH(ptr)->title + 7);
-
- if (B_BH(ptr)->brdattr & BRD_BAD)
- prints(" X ");
- else if (B_BH(ptr)->nuser >= 5000)
- prints("\033[1;34m爆!\033[m");
- else if (B_BH(ptr)->nuser >= 2000)
- prints("\033[1;31m爆!\033[m");
- else if (B_BH(ptr)->nuser >= 1000)
- prints("\033[1m爆!\033[m");
- else if (B_BH(ptr)->nuser >= 100)
- prints("\033[1mHOT\033[m");
- else if (B_BH(ptr)->nuser > 50)
- prints("\033[1;31m%2d\033[m ", B_BH(ptr)->nuser);
- else if (B_BH(ptr)->nuser > 10)
- prints("\033[1;33m%2d\033[m ", B_BH(ptr)->nuser);
- else if (B_BH(ptr)->nuser > 0)
- prints("%2d ", B_BH(ptr)->nuser);
- else
- prints(" %c ", B_BH(ptr)->bvote ? 'V' : ' ');
- prints("%.*s\033[K", t_columns - 67, B_BH(ptr)->BM);
- }
+ prints("%s%-13s\033[m%s%5.5s\033[0;37m%2.2s\033[m"
+ "%-34.34s",
+ ((!(cuser.uflag2 & FAVNOHILIGHT) &&
+ getboard(ptr->bid) != NULL))? "\033[1;36m" : "",
+ B_BH(ptr)->brdname,
+ color[(unsigned int)
+ (B_BH(ptr)->title[1] + B_BH(ptr)->title[2] +
+ B_BH(ptr)->title[3] + B_BH(ptr)->title[0]) & 07],
+ B_BH(ptr)->title, B_BH(ptr)->title + 5, B_BH(ptr)->title + 7);
+
+ if (B_BH(ptr)->brdattr & BRD_BAD)
+ prints(" X ");
+ else if (B_BH(ptr)->nuser >= 5000)
+ prints("\033[1;34m爆!\033[m");
+ else if (B_BH(ptr)->nuser >= 2000)
+ prints("\033[1;31m爆!\033[m");
+ else if (B_BH(ptr)->nuser >= 1000)
+ prints("\033[1m爆!\033[m");
+ else if (B_BH(ptr)->nuser >= 100)
+ prints("\033[1mHOT\033[m");
+ else if (B_BH(ptr)->nuser > 50)
+ prints("\033[1;31m%2d\033[m ", B_BH(ptr)->nuser);
+ else if (B_BH(ptr)->nuser > 10)
+ prints("\033[1;33m%2d\033[m ", B_BH(ptr)->nuser);
+ else if (B_BH(ptr)->nuser > 0)
+ prints("%2d ", B_BH(ptr)->nuser);
+ else
+ prints(" %c ", B_BH(ptr)->bvote ? 'V' : ' ');
+ prints("%.*s\033[K", t_columns - 67, B_BH(ptr)->BM);
} else {
prints("%-40.40s %.*s", B_BH(ptr)->title + 7,
t_columns - 67, B_BH(ptr)->BM);