diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-09-15 10:00:12 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-09-15 10:00:12 +0800 |
commit | e7e5c164854702a203aeabdf2131c46e61e3e3a6 (patch) | |
tree | 493e58569fb06f8eebbe7df8bfd0c4d54c6c2138 | |
parent | 3e81a09d779f1681374df9eba0ad035c65067e51 (diff) | |
download | pttbbs-e7e5c164854702a203aeabdf2131c46e61e3e3a6.tar pttbbs-e7e5c164854702a203aeabdf2131c46e61e3e3a6.tar.gz pttbbs-e7e5c164854702a203aeabdf2131c46e61e3e3a6.tar.bz2 pttbbs-e7e5c164854702a203aeabdf2131c46e61e3e3a6.tar.lz pttbbs-e7e5c164854702a203aeabdf2131c46e61e3e3a6.tar.xz pttbbs-e7e5c164854702a203aeabdf2131c46e61e3e3a6.tar.zst pttbbs-e7e5c164854702a203aeabdf2131c46e61e3e3a6.zip |
default recommendation is now (add comment only).
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3170 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/bbs.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index c69defc7..6838134f 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -2117,16 +2117,23 @@ recommend(int ent, fileheader_t * fhdr, const char *direct) #ifndef OLDRECOMMEND else if (!(bp->brdattr & BRD_NOBOO)) { + /* most people use recommendation just for one-line reply. + * so we change default to (2)= comment only now. + */ +#define RECOMMEND_DEFAULT_VALUE (2) + outs(ANSI_COLOR(1) "您覺得這篇文章 "); - prints("%s1.%s %s2.%s %s3.%s " ANSI_RESET "[1]? ", + prints("%s1.%s %s2.%s %s3.%s " ANSI_RESET "[%d]? ", ctype_attr[0], ctype_long[0], ctype_attr[1], ctype_long[1], - ctype_attr[2], ctype_long[2]); + ctype_attr[2], ctype_long[2], + RECOMMEND_DEFAULT_VALUE); + // poor BBS term has problem positioning with ANSI. move(b_lines, 55); type = igetch() - '1'; if(type < 0 || type > 2) - type = 0; + type = RECOMMEND_DEFAULT_VALUE; move(b_lines, 0); clrtoeol(); } #endif |