diff options
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r-- | mbbsd/bbs.c | 11 |
1 files 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 <stdio.h> #include <stdlib.h> #include <string.h> @@ -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); } |