From 6d37819d9463fcc47db16cb058221bc9265b3991 Mon Sep 17 00:00:00 2001 From: piaip Date: Tue, 25 Dec 2007 02:15:09 +0000 Subject: - gp auto fix: update display attribute error and msg logic git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3741 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/assess.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/assess.c b/mbbsd/assess.c index 52b7043c..4a5ed3bc 100644 --- a/mbbsd/assess.c +++ b/mbbsd/assess.c @@ -213,8 +213,8 @@ u_fixgoodpost(void) ANSI_COLOR(1;31) "錯誤" ANSI_RESET); if (!(fh.filemode & FILE_MARKED)) n = 0; - prints("M文: %s\n", n ? "正確" : - ANSI_COLOR(1;3) "錯誤" ANSI_RESET); + prints("M文: %s\n", (fh.filemode & FILE_MARKED) ? "正確" : + ANSI_COLOR(1;31) "錯誤" ANSI_RESET); prints("推薦: %d\n", fh.recommend); close(fd); if (!n) -- cgit v1.2.3