From 18d2507f60d78198de12b971daf56d6bb145d564 Mon Sep 17 00:00:00 2001 From: victor Date: Mon, 24 Feb 2003 11:42:04 +0000 Subject: make users be able to see their own sex and money git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@674 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/talk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pttbbs/mbbsd/talk.c b/pttbbs/mbbsd/talk.c index 60f2aa85..4f1688fc 100644 --- a/pttbbs/mbbsd/talk.c +++ b/pttbbs/mbbsd/talk.c @@ -1,4 +1,4 @@ -/* $Id: talk.c,v 1.100 2003/01/19 16:18:17 kcwu Exp $ */ +/* $Id: talk.c,v 1.101 2003/02/24 11:42:04 victor Exp $ */ #include "bbs.h" #define QCAST int (*)(const void *, const void *) @@ -388,7 +388,7 @@ my_query(char *uident) prints("《上次上站》%-28.28s《上次故鄉》%s\n", Cdate(&muser.lastlogin), (muser.lasthost[0] ? muser.lasthost : "(不詳)")); - if ((uentp && fri_stat & HFM && !uentp->invisible)) + if ((uentp && ((fri_stat & HFM) || strcmp(muser.userid,cuser.userid) == 0) && !uentp->invisible)) prints("《 性 別 》%-28.28s《私有財產》%d 銀兩\n", sex[muser.sex % 8], muser.money); -- cgit v1.2.3