summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-25 20:42:30 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-25 20:42:30 +0800
commit5043b65d452324eb1c05bd66d828ffcc29d71294 (patch)
treef9d70aba2419f66a05f3fc8426fa8cb1a67258c2 /mbbsd/bbs.c
parenta21f75a9bcebc07c033536283ffa926010f50f2f (diff)
downloadpttbbs-5043b65d452324eb1c05bd66d828ffcc29d71294.tar
pttbbs-5043b65d452324eb1c05bd66d828ffcc29d71294.tar.gz
pttbbs-5043b65d452324eb1c05bd66d828ffcc29d71294.tar.bz2
pttbbs-5043b65d452324eb1c05bd66d828ffcc29d71294.tar.lz
pttbbs-5043b65d452324eb1c05bd66d828ffcc29d71294.tar.xz
pttbbs-5043b65d452324eb1c05bd66d828ffcc29d71294.tar.zst
pttbbs-5043b65d452324eb1c05bd66d828ffcc29d71294.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@224 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 5a67c36f..915daebf 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1,4 +1,4 @@
-/* $Id: bbs.c,v 1.15 2002/05/25 12:39:37 ptt Exp $ */
+/* $Id: bbs.c,v 1.16 2002/05/25 12:42:30 ptt Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -164,7 +164,7 @@ extern int Tagger();
static void readdoent(int num, fileheader_t *ent) {
int type;
char *mark, *title, color;
-
+ if(ent->recommend>9 || ent->recommend <0 ) ent->recommend=0; //Ptt:¼È®É
type = brc_unread(ent->filename,brc_num,brc_list) ? '+' : ' ';
if((currmode & MODE_BOARD) && (ent->filemode & FILE_DIGEST))
@@ -190,11 +190,11 @@ static void readdoent(int num, fileheader_t *ent) {
strcpy(title + 44, " ¡K"); /* §â¦h¾lªº string ¬å±¼ */
if(strncmp(currtitle, title, TTLEN))
- prints("%6d \033[1;34m%c\033[32m%c\033[m %-6s%-13.12s%s %s\n", num, type,
+ prints("%6d %c\033[1;32m%c\033[m %-6s%-13.12s%s %s\n", num, type,
ent->recommend?ent->recommend+'0':' ',
ent->date, ent->owner, mark, title);
else
- prints("%6d \033[1;34m%c\033[32m%c\033[m %-6s%-13.12s\033[1;3%cm%s %s\033[m\n", num, type,
+ prints("%6d %c\033[1;32m%c\033[m %-6s%-13.12s\033[1;3%cm%s %s\033[m\n", num, type,
ent->recommend?ent->recommend+'0':' ',
ent->date, ent->owner, color, mark, title);
}