From 630ffc04ce1dd9b525f09f8d61de82e3418cdda3 Mon Sep 17 00:00:00 2001 From: ptt Date: Thu, 30 May 2002 18:21:04 +0000 Subject: *** empty log message *** git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@260 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 0baea631..047578e1 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1,4 +1,4 @@ -/* $Id: bbs.c,v 1.41 2002/05/30 18:13:58 ptt Exp $ */ +/* $Id: bbs.c,v 1.42 2002/05/30 18:21:04 ptt Exp $ */ #include #include #include @@ -161,7 +161,7 @@ static void readdoent(int num, fileheader_t *ent) { int type; userinfo_t *u; char *mark, *title, color, - special=0; + special=0, isonline=0; if(ent->recommend>9 || ent->recommend <0 ) ent->recommend=0; //Ptt:暫時 type = brc_unread(ent->filename,brc_num,brc_list) ? '+' : ' '; @@ -188,13 +188,16 @@ static void readdoent(int num, fileheader_t *ent) { strcpy(title + 44, " …"); /* 把多餘的 string 砍掉 */ if(!strncmp(title,"[公告]",6)) special=1; + if((u=search_ulist (searchuser(ent->owner)))&& + !u->invisible && !PERM_HIDE(u)) + isonline=1; if(strncmp(currtitle, title, TTLEN)) prints("%6d %c\033[1;32m%c\033[m%-6s\033[%dm%-13.12s\033[m%s " "\033[1m%.*s\033[m%s\n", num, type, ent->recommend?ent->recommend+'0':' ', ent->date, - (u=search_ulist (searchuser(ent->owner)))&&!u->invisible? 1:0, + isonline, ent->owner, mark, special?6:0, title, special?title+6:title); else @@ -202,7 +205,7 @@ static void readdoent(int num, fileheader_t *ent) { "%s\033[m\n", num, type, ent->recommend?ent->recommend+'0':' ', ent->date, - (u=search_ulist (searchuser(ent->owner)))&&!u->invisible? 1:0, + isonline, ent->owner, color, mark, title); } -- cgit v1.2.3