summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-31 02:13:58 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-31 02:13:58 +0800
commitbcc95daead357611988652c5c03545d74f669e57 (patch)
tree2a5d0f17ed09542839d794a1494beee5877aad6f /mbbsd
parent34ee949b62080483a420c5efe90e156243dd0a03 (diff)
downloadpttbbs-bcc95daead357611988652c5c03545d74f669e57.tar
pttbbs-bcc95daead357611988652c5c03545d74f669e57.tar.gz
pttbbs-bcc95daead357611988652c5c03545d74f669e57.tar.bz2
pttbbs-bcc95daead357611988652c5c03545d74f669e57.tar.lz
pttbbs-bcc95daead357611988652c5c03545d74f669e57.tar.xz
pttbbs-bcc95daead357611988652c5c03545d74f669e57.tar.zst
pttbbs-bcc95daead357611988652c5c03545d74f669e57.zip
invisible fix
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@259 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 75da7945..0baea631 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1,4 +1,4 @@
-/* $Id: bbs.c,v 1.40 2002/05/30 17:49:15 ptt Exp $ */
+/* $Id: bbs.c,v 1.41 2002/05/30 18:13:58 ptt Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -159,6 +159,7 @@ extern int Tagger();
static void readdoent(int num, fileheader_t *ent) {
int type;
+ userinfo_t *u;
char *mark, *title, color,
special=0;
if(ent->recommend>9 || ent->recommend <0 ) ent->recommend=0; //Ptt:¼È®É
@@ -193,7 +194,7 @@ static void readdoent(int num, fileheader_t *ent) {
"\033[1m%.*s\033[m%s\n", num, type,
ent->recommend?ent->recommend+'0':' ',
ent->date,
- search_ulist (searchuser(ent->owner))? 1:0,
+ (u=search_ulist (searchuser(ent->owner)))&&!u->invisible? 1:0,
ent->owner, mark,
special?6:0, title, special?title+6:title);
else
@@ -201,7 +202,7 @@ static void readdoent(int num, fileheader_t *ent) {
"%s\033[m\n", num, type,
ent->recommend?ent->recommend+'0':' ',
ent->date,
- search_ulist (searchuser(ent->owner))? 1:0,
+ (u=search_ulist (searchuser(ent->owner)))&&!u->invisible? 1:0,
ent->owner, color, mark,
title);
}