summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-25 02:16:05 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-25 02:16:05 +0800
commit165c4b5c6acdf9a3888bc1b1f20b08e36eff2539 (patch)
treee8c10a9de6769158b583cfdb6656c2ceb7ee8f96 /mbbsd
parentd313cf8b819d2be849633bedd6b5b9f0eeb20976 (diff)
downloadpttbbs-165c4b5c6acdf9a3888bc1b1f20b08e36eff2539.tar
pttbbs-165c4b5c6acdf9a3888bc1b1f20b08e36eff2539.tar.gz
pttbbs-165c4b5c6acdf9a3888bc1b1f20b08e36eff2539.tar.bz2
pttbbs-165c4b5c6acdf9a3888bc1b1f20b08e36eff2539.tar.lz
pttbbs-165c4b5c6acdf9a3888bc1b1f20b08e36eff2539.tar.xz
pttbbs-165c4b5c6acdf9a3888bc1b1f20b08e36eff2539.tar.zst
pttbbs-165c4b5c6acdf9a3888bc1b1f20b08e36eff2539.zip
brd
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@202 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/board.c25
1 files changed, 17 insertions, 8 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index af0ee171..4aee2307 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.10 2002/05/24 17:44:39 ptt Exp $ */
+/* $Id: board.c,v 1.11 2002/05/24 18:16:05 ptt Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -607,16 +607,22 @@ static void show_brdlist(int head, int clsflag, int newflag) {
}
if(class_bid != 1) {
prints("%s%-13s\033[m%s%5.5s\033[0;37m%2.2s\033[m"
- "%-34.34s%3d%.13s",
+ "%-34.34s",
(ptr->myattr & BRD_FAV)?"\033[1;36m":"",
ptr->bh->brdname,
color[(unsigned int)
(ptr->bh->title[1] + ptr->bh->title[2] +
ptr->bh->title[3] + ptr->bh->title[0]) & 07],
- ptr->bh->title, ptr->bh->title+5, ptr->bh->title+7,
- (ptr->bh->brdattr & BRD_BAD) ? 'X' :
- ptr->bh->nuser,
- ptr->bh->BM);
+ ptr->bh->title, ptr->bh->title+5, ptr->bh->title+7);
+
+ if (ptr->bh->brdattr & BRD_BAD)
+ prints(" X ");
+ else if(ptr->bh->nuser>30)
+ prints("\033[31mHOT\033[m");
+ else if(ptr->bh->nuser)
+ prints("\033[31m%2d\033[m ",ptr->bh->nuser);
+ else prints(" %c ", ptr->bh->bvote? " ":"V");
+ prints(".13s", ptr->bh->BM);
refresh();
} else {
prints("%-40.40s %.13s", ptr->bh->title + 7, ptr->bh->BM);
@@ -679,11 +685,14 @@ void setutmpbid(int bid)
userinfo_t *u;
if(id)
{
- u=bcache[id-1].u;
if (brdshm->busystate!=1 && brdshm->busystate_b[id-1]!=1)
{
brdshm->busystate_b[id-1]=1;
- for(u; u && u->nextbfriend != (void*)currutmp; u=u->nextbfriend);
+ u=bcache[id-1].u;
+ if(u!=(void*)currutmp)
+ for(;u && u->nextbfriend != (void*)currutmp; u=u->nextbfriend);
+ else
+ bcache[bid-1].u=NULL;
if(u)
{
bcache[id-1].nuser--;