From c70054b024b28b5e57c2864a2c35df607737553f Mon Sep 17 00:00:00 2001 From: ptt Date: Fri, 24 May 2002 18:56:28 +0000 Subject: *** empty log message *** git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@206 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/board.c | 4 ++-- mbbsd/talk.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/board.c b/mbbsd/board.c index e8718ea4..5c030b4b 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -1,4 +1,4 @@ -/* $Id: board.c,v 1.14 2002/05/24 18:42:51 ptt Exp $ */ +/* $Id: board.c,v 1.15 2002/05/24 18:56:28 ptt Exp $ */ #include #include #include @@ -692,7 +692,7 @@ void setutmpbid(int bid) if(u!=(void*)currutmp) for(;u && u->nextbfriend != (void*)currutmp; u=u->nextbfriend); else - bcache[bid-1].u=NULL; + bcache[id-1].u=NULL; if(u) { bcache[id-1].nuser--; diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 76069b61..e84831d4 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -1,4 +1,4 @@ -/* $Id: talk.c,v 1.40 2002/05/24 18:42:51 ptt Exp $ */ +/* $Id: talk.c,v 1.41 2002/05/24 18:56:28 ptt Exp $ */ #include #include #include @@ -47,7 +47,6 @@ extern boardheader_t *bcache; extern userec_t cuser; extern userec_t xuser; extern time_t now; -extern int currbid; static char *IdleTypeTable[] = { "偶在花呆啦", "情人來電", "覓食中", "拜見周公", "假死狀態", "我在思考" }; @@ -1657,7 +1656,8 @@ static void draw_pickup(int drawall, pickup_t *pickup, int pickup_way, "\033[33m與我為友:%-3d\033[36m板友:%-4d\033[31m壞人:" "%-2d\033[m\n", msg_pickup_way[pickup_way], utmpshm->number, - myfriend, friendme, bcache[currbid-1].nuser, 0); + myfriend, friendme, + currutmp->brc_id? bcache[currutmp->brc_id-1].nuser, 0); move(3, 0); for( i = 0, ch = page * 20 + 1 ; i < MAXPICKUP ; ++i, ++ch ){ -- cgit v1.2.3