From 5b0f7364cb66e97eb10fa7b6bdf903608f8e7499 Mon Sep 17 00:00:00 2001 From: ptt Date: Wed, 5 Jun 2002 01:50:40 +0000 Subject: *** empty log message *** git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@287 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/talk.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 4f54254d..64a85d34 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -1,4 +1,4 @@ -/* $Id: talk.c,v 1.63 2002/06/04 18:54:41 ptt Exp $ */ +/* $Id: talk.c,v 1.64 2002/06/05 01:50:40 ptt Exp $ */ #include "bbs.h" #define QCAST int (*)(const void *, const void *) @@ -1492,7 +1492,6 @@ static int pickup_myfriend(pickup_t *friends, ){ friends[ngets].ui = uentp; friends[ngets].uoffset = where; - if(uentp->brc_id==currutmp->brc_id) frstate |= IBH; friends[ngets++].friend = frstate; if( frstate & IFH ) ++*myfriend; @@ -1514,7 +1513,7 @@ static int pickup_bfriend(pickup_t *friends, int base) ptr != NULL && ngets < MAX_FRIEND-base ; ptr = ptr->nextbfriend ){ if( currutmp != ptr && isvisible(currutmp, ptr) && - !(friend_stat(currutmp,ptr)&(IFH|HFM)) ){ + (base || !(friend_stat(currutmp,ptr)&(IFH|HFM))) ){ friends[ngets].ui = ptr; friends[ngets++].friend = IBH; } @@ -1571,7 +1570,7 @@ static void pickup(pickup_t *currpickup, int pickup_way, int *page, for(;which < utmpnumber && size < MAXPICKUP;which++) { if(currutmp != utmp[which] && - !(friend_stat(currutmp,utmp[which])&ST_FRIEND) && + (pickup_way||!(friend_stat(currutmp,utmp[which])&ST_FRIEND)) && isvisible_stat(currutmp, utmp[which], 0)) { currpickup[size].ui = utmp[which]; -- cgit v1.2.3