diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-05-31 00:50:50 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-05-31 00:50:50 +0800 |
commit | 48b6413a6acd25cd3712daa8ddd9b7f02fcfa2b2 (patch) | |
tree | 00c1e82823a09b41cec3b17c3892f72864ccecd0 /mbbsd/bbs.c | |
parent | 0b4adadc64ac880228dc899d1e2131626c7579c6 (diff) | |
download | pttbbs-48b6413a6acd25cd3712daa8ddd9b7f02fcfa2b2.tar pttbbs-48b6413a6acd25cd3712daa8ddd9b7f02fcfa2b2.tar.gz pttbbs-48b6413a6acd25cd3712daa8ddd9b7f02fcfa2b2.tar.bz2 pttbbs-48b6413a6acd25cd3712daa8ddd9b7f02fcfa2b2.tar.lz pttbbs-48b6413a6acd25cd3712daa8ddd9b7f02fcfa2b2.tar.xz pttbbs-48b6413a6acd25cd3712daa8ddd9b7f02fcfa2b2.tar.zst pttbbs-48b6413a6acd25cd3712daa8ddd9b7f02fcfa2b2.zip |
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@252 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r-- | mbbsd/bbs.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 5ad1789d..116f78e9 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1,4 +1,4 @@ -/* $Id: bbs.c,v 1.34 2002/05/26 05:31:26 ptt Exp $ */ +/* $Id: bbs.c,v 1.35 2002/05/30 16:50:50 ptt Exp $ */ #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -186,19 +186,23 @@ static void readdoent(int num, fileheader_t *ent) { if(title[47]) strcpy(title + 44, " …"); /* 把多餘的 string 砍掉 */ - if(title[0]=='[' && title[5]==']' ) special=1; + if(!strncmp(title,"[公告]",6)) special=1; if(strncmp(currtitle, title, TTLEN)) - prints("%6d %c\033[1;32m%c\033[m%-6s%-13.12s%s " + prints("%6d %c\033[1;32m%c\033[m%-6s\033[%d;0m%-13.12s%s\033[m " "\033[1m%.*s\033[m%s\n", num, type, ent->recommend?ent->recommend+'0':' ', - ent->date, ent->owner, mark, + ent->date, + search_ulist (searchuser(ent->owner))? 1:0, + ent->owner, mark, special?6:0, title, special?title+6:title); else - prints("%6d %c\033[1;32m%c\033[m%-6s%-13.12s\033[1;3%cm%s " + prints("%6d %c\033[1;32m%c\033[m%-6s\033[%d;0m%-13.12s\033[1;3%cm%s " "%s\033[m\n", num, type, ent->recommend?ent->recommend+'0':' ', - ent->date, ent->owner, color, mark, + ent->date, + search_ulist (searchuser(ent->owner))? 1:0, + ent->owner, color, mark, title); } |