diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-19 17:24:29 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-19 17:24:29 +0800 |
commit | 7c0c9404b7353ca9c4bf08b0b9a3226554ea8031 (patch) | |
tree | 1d0a58a02c81cf9e50ae1453bcec46a01a143f6f | |
parent | a9aca39170f014947d613150fc998d1ec62eef6c (diff) | |
download | pttbbs-7c0c9404b7353ca9c4bf08b0b9a3226554ea8031.tar pttbbs-7c0c9404b7353ca9c4bf08b0b9a3226554ea8031.tar.gz pttbbs-7c0c9404b7353ca9c4bf08b0b9a3226554ea8031.tar.bz2 pttbbs-7c0c9404b7353ca9c4bf08b0b9a3226554ea8031.tar.lz pttbbs-7c0c9404b7353ca9c4bf08b0b9a3226554ea8031.tar.xz pttbbs-7c0c9404b7353ca9c4bf08b0b9a3226554ea8031.tar.zst pttbbs-7c0c9404b7353ca9c4bf08b0b9a3226554ea8031.zip |
don't display board users on userlist in case of cooldown
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2631 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/talk.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index c89017d3..732fa862 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -1857,7 +1857,11 @@ pickup(pickup_t * currpickup, int pickup_way, int *page, /* TODO 當 friendtotal<which 時只需顯示板友, 不需 pickup_myfriend */ *nfriend = pickup_myfriend(friends, myfriend, friendme, badfriend); - if (pickup_way == 0 && currutmp->brc_id != 0){ + if (pickup_way == 0 && currutmp->brc_id != 0 +#ifdef USE_COOLDOWN + && !(bcache[currutmp->brc_id-1].brdattr & BRD_COOLDOWN) +#endif + ){ /* TODO 只需要 which+nPickups-*nfriend 個板友, 不一定要整個掃一遍 */ *nfriend += pickup_bfriend(friends, *nfriend); *bfriend = SHM->bcache[currutmp->brc_id - 1].nuser; |