diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-02-24 19:42:04 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-02-24 19:42:04 +0800 |
commit | 18d2507f60d78198de12b971daf56d6bb145d564 (patch) | |
tree | 0821230c8c4b30e41ced08f5e52306067abb62bd | |
parent | 1b066dcacdffe55fbcbe942556927f75ccbd128c (diff) | |
download | pttbbs-18d2507f60d78198de12b971daf56d6bb145d564.tar pttbbs-18d2507f60d78198de12b971daf56d6bb145d564.tar.gz pttbbs-18d2507f60d78198de12b971daf56d6bb145d564.tar.bz2 pttbbs-18d2507f60d78198de12b971daf56d6bb145d564.tar.lz pttbbs-18d2507f60d78198de12b971daf56d6bb145d564.tar.xz pttbbs-18d2507f60d78198de12b971daf56d6bb145d564.tar.zst pttbbs-18d2507f60d78198de12b971daf56d6bb145d564.zip |
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
-rw-r--r-- | pttbbs/mbbsd/talk.c | 4 |
1 files 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); |