summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-10-29 19:24:59 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-10-29 19:24:59 +0800
commitad0479b532bbc70b35804cce347764dfcc9c6df5 (patch)
tree419cf5d4cf739f445930f1135dc2a38d01432b23
parent5aeca4b196d4026a2c6bad079faafdc3179614cf (diff)
downloadpttbbs-ad0479b532bbc70b35804cce347764dfcc9c6df5.tar
pttbbs-ad0479b532bbc70b35804cce347764dfcc9c6df5.tar.gz
pttbbs-ad0479b532bbc70b35804cce347764dfcc9c6df5.tar.bz2
pttbbs-ad0479b532bbc70b35804cce347764dfcc9c6df5.tar.lz
pttbbs-ad0479b532bbc70b35804cce347764dfcc9c6df5.tar.xz
pttbbs-ad0479b532bbc70b35804cce347764dfcc9c6df5.tar.zst
pttbbs-ad0479b532bbc70b35804cce347764dfcc9c6df5.zip
fix wrong perm checking in query mode
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1276 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/talk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 84728632..80107ec2 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -357,7 +357,7 @@ my_query(char *uident)
muser.username,
26 - strlen(muser.userid) - strlen(muser.username), "",
money[i]);
- if ((uentp && ((fri_stat & HFM) || strcmp(muser.userid,cuser.userid) == 0) && !uentp->invisible))
+ if (uentp && ((fri_stat & HFM && !uentp->invisible) || strcmp(muser.userid,cuser.userid) == 0))
prints(" ($%d)", muser.money);
prints("\n");