diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-05-31 02:21:04 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-05-31 02:21:04 +0800 |
commit | 630ffc04ce1dd9b525f09f8d61de82e3418cdda3 (patch) | |
tree | ab64590c30a45548675f7d21dedc581d939d02e7 | |
parent | bcc95daead357611988652c5c03545d74f669e57 (diff) | |
download | pttbbs-630ffc04ce1dd9b525f09f8d61de82e3418cdda3.tar pttbbs-630ffc04ce1dd9b525f09f8d61de82e3418cdda3.tar.gz pttbbs-630ffc04ce1dd9b525f09f8d61de82e3418cdda3.tar.bz2 pttbbs-630ffc04ce1dd9b525f09f8d61de82e3418cdda3.tar.lz pttbbs-630ffc04ce1dd9b525f09f8d61de82e3418cdda3.tar.xz pttbbs-630ffc04ce1dd9b525f09f8d61de82e3418cdda3.tar.zst pttbbs-630ffc04ce1dd9b525f09f8d61de82e3418cdda3.zip |
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@260 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-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); } |