summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-10-14 19:47:33 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-10-14 19:47:33 +0800
commit796ccb076496b11b027d7761b189b26f4c3e32b3 (patch)
tree8776e2614f84be04af2c5bf76e86e7f09f47ac21
parent3fd44caace18608a40f67e6c911acc0c0eb9d5f4 (diff)
downloadpttbbs-796ccb076496b11b027d7761b189b26f4c3e32b3.tar
pttbbs-796ccb076496b11b027d7761b189b26f4c3e32b3.tar.gz
pttbbs-796ccb076496b11b027d7761b189b26f4c3e32b3.tar.bz2
pttbbs-796ccb076496b11b027d7761b189b26f4c3e32b3.tar.lz
pttbbs-796ccb076496b11b027d7761b189b26f4c3e32b3.tar.xz
pttbbs-796ccb076496b11b027d7761b189b26f4c3e32b3.tar.zst
pttbbs-796ccb076496b11b027d7761b189b26f4c3e32b3.zip
show real boardfriend in userlist
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@1240 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/talk.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/pttbbs/mbbsd/talk.c b/pttbbs/mbbsd/talk.c
index c3a9399b..d53e1618 100644
--- a/pttbbs/mbbsd/talk.c
+++ b/pttbbs/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);