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 | 550a291b81edfeb3deb8cf17318ef54cc5527859 (patch) | |
tree | 58a43e994a30214ecbe87de0fabb83dfce72a0b1 /mbbsd | |
parent | c5c5ed07769a45a9d37e52daae2ec555cc272782 (diff) | |
download | pttbbs-550a291b81edfeb3deb8cf17318ef54cc5527859.tar pttbbs-550a291b81edfeb3deb8cf17318ef54cc5527859.tar.gz pttbbs-550a291b81edfeb3deb8cf17318ef54cc5527859.tar.bz2 pttbbs-550a291b81edfeb3deb8cf17318ef54cc5527859.tar.lz pttbbs-550a291b81edfeb3deb8cf17318ef54cc5527859.tar.xz pttbbs-550a291b81edfeb3deb8cf17318ef54cc5527859.tar.zst pttbbs-550a291b81edfeb3deb8cf17318ef54cc5527859.zip |
make users be able to see their own sex and money
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@674 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/talk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 60f2aa85..4f1688fc 100644 --- a/mbbsd/talk.c +++ b/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); |