From 4c5f4c5f248509cd1e46ef308d52be1804181411 Mon Sep 17 00:00:00 2001 From: in2 Date: Sun, 18 May 2003 07:20:29 +0000 Subject: 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 --- mbbsd/talk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mbbsd') 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]; -- cgit v1.2.3