From 7fcc0a26f42d20ceb87429d3b25ceff226e110a7 Mon Sep 17 00:00:00 2001 From: ptt Date: Wed, 12 May 2004 19:11:06 +0000 Subject: adjust the color and layout of recommend git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1968 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 01880ab8..13bd6fb1 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1500,7 +1500,7 @@ recommend(int ent, fileheader_t * fhdr, char *direct) { struct tm *ptime = localtime(&now); char buf[200], path[200], - *ctype[3] = {"33m推","31m噓","37m註"}; + *ctype[3] = {"37m推","31m噓","37m"}; int type; boardheader_t *bp; static time_t lastrecommend = 0; @@ -1526,8 +1526,8 @@ recommend(int ent, fileheader_t * fhdr, char *direct) } setdirpath(path, direct, fhdr->filename); - type = vmsg_lines(b_lines-2, "您要對這篇文章 1.推薦 2.噓聲 3.加註 [1]?") - '1'; - if(type > 2 || type < 0) type = 0; + type = vmsg_lines(b_lines-2, "您要對這篇文章 1.推薦 2.噓聲 3.加註 [3]?") - '1'; + if(type > 2 || type < 0) type = 2; if (type < 2) { @@ -1548,11 +1548,12 @@ recommend(int ent, fileheader_t * fhdr, char *direct) return FULLUPDATE; snprintf(buf, sizeof(buf), - "\033[1;31m→\033[33m%s:\033[m\033[%s\033[33m:%s\033[m%*s%15s %02d/%02d\n", + "\033[1;31m→ \033[33m%s\033[%s\033[m\033[33m:%s\033[m%*s%15s %02d/%02d\n", cuser.userid, ctype[type], path, - 51 - strlen(cuser.userid) - strlen(path), " ", + 56 - strlen(cuser.userid) - strlen(path) - strlen(ctype[type]), + " ", fromhost, ptime->tm_mon + 1, ptime->tm_mday); do_add_recommend(direct, fhdr, ent, buf, type); -- cgit v1.2.3