diff options
-rw-r--r-- | mbbsd/board.c | 4 | ||||
-rw-r--r-- | mbbsd/talk.c | 6 |
2 files changed, 5 insertions, 5 deletions
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 <stdio.h> #include <stdlib.h> #include <string.h> @@ -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 <stdio.h> #include <string.h> #include <errno.h> @@ -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 ){ |