From 50f20458362cbf06180c0cddd570db13d5c44c87 Mon Sep 17 00:00:00 2001 From: in2 Date: Tue, 14 Oct 2003 11:47:33 +0000 Subject: show real boardfriend in userlist git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1240 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/talk.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/talk.c b/mbbsd/talk.c index c3a9399b..d53e1618 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -1629,11 +1629,12 @@ pickup(pickup_t * currpickup, int pickup_way, int *page, *nfriend = pickup_myfriend(friends, myfriend, friendme, badfriend); - if (pickup_way == 0 && currutmp->brc_id != 0) - *bfriend = pickup_bfriend(friends, *nfriend); + if (pickup_way == 0 && currutmp->brc_id != 0){ + *nfriend += pickup_bfriend(friends, *nfriend); + *bfriend = SHM->bcache[currutmp->brc_id - 1].nuser; + } else *bfriend = 0; - *nfriend += *bfriend; if (*nfriend > which) { /* 只有在要秀出才有必要 sort */ qsort(friends, *nfriend, sizeof(pickup_t), sort_cmpfriend); -- cgit v1.2.3