diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-05-18 15:20:29 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-05-18 15:20:29 +0800 |
commit | 4c5f4c5f248509cd1e46ef308d52be1804181411 (patch) | |
tree | 8feb991752932debc0d8255fa9a14bdff2ed8ca9 /mbbsd | |
parent | 62b8015b4e30278ae3b533e9ac6c861c31433d70 (diff) | |
download | pttbbs-4c5f4c5f248509cd1e46ef308d52be1804181411.tar pttbbs-4c5f4c5f248509cd1e46ef308d52be1804181411.tar.gz pttbbs-4c5f4c5f248509cd1e46ef308d52be1804181411.tar.bz2 pttbbs-4c5f4c5f248509cd1e46ef308d52be1804181411.tar.lz pttbbs-4c5f4c5f248509cd1e46ef308d52be1804181411.tar.xz pttbbs-4c5f4c5f248509cd1e46ef308d52be1804181411.tar.zst pttbbs-4c5f4c5f248509cd1e46ef308d52be1804181411.zip |
fix bug when no other friend is online
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@862 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/talk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 725300bc..08ef5020 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -1,4 +1,4 @@ -/* $Id: talk.c,v 1.109 2003/05/16 08:25:10 ptt Exp $ */ +/* $Id: talk.c,v 1.110 2003/05/18 07:20:29 in2 Exp $ */ #include "bbs.h" #define QCAST int (*)(const void *, const void *) @@ -1618,11 +1618,11 @@ pickup(pickup_t * currpickup, int pickup_way, int *page, ((pickup_way == 0) && /* [嗨! 朋友] mode */ ( /* 含板友, 好友區最多只會有 (friendtotal + 板友) 個*/ - (currutmp->brc_id && which < (friendtotal + + (currutmp->brc_id && which < (friendtotal + 1 + bcache[currutmp->brc_id-1].nuser)) || /* 不含板友, 最多只會有 friendtotal個 */ - (!currutmp->brc_id && which < friendtotal) + (!currutmp->brc_id && which < friendtotal + 1) ))) { pickup_t friends[MAX_FRIEND]; |