summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-13 03:11:06 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-13 03:11:06 +0800
commit7fcc0a26f42d20ceb87429d3b25ceff226e110a7 (patch)
tree248e056d351e88b2676e9490914e601a6b8312c5 /mbbsd
parenta24c58be9c4705770515982f662b3b7136aa220c (diff)
downloadpttbbs-7fcc0a26f42d20ceb87429d3b25ceff226e110a7.tar
pttbbs-7fcc0a26f42d20ceb87429d3b25ceff226e110a7.tar.gz
pttbbs-7fcc0a26f42d20ceb87429d3b25ceff226e110a7.tar.bz2
pttbbs-7fcc0a26f42d20ceb87429d3b25ceff226e110a7.tar.lz
pttbbs-7fcc0a26f42d20ceb87429d3b25ceff226e110a7.tar.xz
pttbbs-7fcc0a26f42d20ceb87429d3b25ceff226e110a7.tar.zst
pttbbs-7fcc0a26f42d20ceb87429d3b25ceff226e110a7.zip
adjust the color and layout of recommend
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1968 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c11
1 files changed, 6 insertions, 5 deletions
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);