diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-05-25 22:21:26 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-05-25 22:21:26 +0800 |
commit | baa85fe9f8da5ea17fa09f56a90be9394ca16154 (patch) | |
tree | e9e6546b89a8c3b57a5febaf5a7b6cada8ad2f43 /mbbsd | |
parent | dc5f54f52fcc772d0427a7364fb779261e981295 (diff) | |
download | pttbbs-baa85fe9f8da5ea17fa09f56a90be9394ca16154.tar pttbbs-baa85fe9f8da5ea17fa09f56a90be9394ca16154.tar.gz pttbbs-baa85fe9f8da5ea17fa09f56a90be9394ca16154.tar.bz2 pttbbs-baa85fe9f8da5ea17fa09f56a90be9394ca16154.tar.lz pttbbs-baa85fe9f8da5ea17fa09f56a90be9394ca16154.tar.xz pttbbs-baa85fe9f8da5ea17fa09f56a90be9394ca16154.tar.zst pttbbs-baa85fe9f8da5ea17fa09f56a90be9394ca16154.zip |
recommend fix
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@229 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/bbs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 43deaacf..5d821315 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1,4 +1,4 @@ -/* $Id: bbs.c,v 1.20 2002/05/25 14:18:23 ptt Exp $ */ +/* $Id: bbs.c,v 1.21 2002/05/25 14:21:26 ptt Exp $ */ #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -1151,9 +1151,10 @@ static int recommend(int ent, fileheader_t *fhdr, char *direct) { if(!getdata(b_lines-2, 0, "推薦語:",path,40,DOECHO) || !getdata(b_lines-1, 0, "確定要推薦, 請仔細考慮(Y/N)?[n] ", yn, 5,LCECHO) - || yn[0]!='y') return PART_REDRAW; + || yn[0]!='y') return FULLUPDATE; - sprintf(buf,"□ %s推薦:%s 來自: %-20s (%02d/%02d %02d:%02d)\n", + sprintf(buf, + "\033[1;33m□ %s推薦:%s\033[m 來自: %-20s (%02d/%02d %02d:%02d)\n", cuser.userid, path, fromhost, ptime->tm_mon+1,ptime->tm_mday,ptime->tm_hour,ptime->tm_min) ; setdirpath(path, direct, fhdr->filename); |