diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-10-14 19:47:33 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-10-14 19:47:33 +0800 |
commit | 50f20458362cbf06180c0cddd570db13d5c44c87 (patch) | |
tree | 537a953a83961e68eeabf5be6d738478dbacb07d /mbbsd | |
parent | 1885c4f2e49d581baaf5f5dfd600287076dbd1f5 (diff) | |
download | pttbbs-50f20458362cbf06180c0cddd570db13d5c44c87.tar pttbbs-50f20458362cbf06180c0cddd570db13d5c44c87.tar.gz pttbbs-50f20458362cbf06180c0cddd570db13d5c44c87.tar.bz2 pttbbs-50f20458362cbf06180c0cddd570db13d5c44c87.tar.lz pttbbs-50f20458362cbf06180c0cddd570db13d5c44c87.tar.xz pttbbs-50f20458362cbf06180c0cddd570db13d5c44c87.tar.zst pttbbs-50f20458362cbf06180c0cddd570db13d5c44c87.zip |
show real boardfriend in userlist
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1240 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/talk.c | 7 |
1 files changed, 4 insertions, 3 deletions
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); |