From c0a6419aeceaeb93d5d9ccde393236d67ff8c72f Mon Sep 17 00:00:00 2001 From: ptt Date: Wed, 5 Jun 2002 03:22:43 +0000 Subject: *** empty log message *** git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@295 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/talk.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 3e078ef4..e1feac1f 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -1,4 +1,4 @@ -/* $Id: talk.c,v 1.67 2002/06/05 02:42:29 ptt Exp $ */ +/* $Id: talk.c,v 1.68 2002/06/05 03:22:43 ptt Exp $ */ #include "bbs.h" #define QCAST int (*)(const void *, const void *) @@ -1529,7 +1529,7 @@ static void pickup(pickup_t *currpickup, int pickup_way, int *page, int friendtotal= currutmp->friendtotal; userinfo_t **utmp; - int which, sorted_way, size=0; + int which, sorted_way, size=0, friend; if( friendtotal == 0 ) *myfriend = *friendme = 1; @@ -1569,12 +1569,13 @@ static void pickup(pickup_t *currpickup, int pickup_way, int *page, if(which<0) which=0; for(;which < utmpnumber && size < MAXPICKUP;which++) { + friend = friend_stat(currutmp,utmp[which]); if((pickup_way||(currutmp != utmp[which] && - !(friend_stat(currutmp,utmp[which])&ST_FRIEND))) && + !(friend&ST_FRIEND))) && isvisible_stat(currutmp, utmp[which], 0)) { currpickup[size].ui = utmp[which]; - currpickup[size++].friend = 0; + currpickup[size++].friend = friend; } } } -- cgit v1.2.3