diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-16 13:22:03 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-12-16 13:22:03 +0800 |
commit | 5a901f172ecacd3914cd473667cbd4dc10b8445a (patch) | |
tree | de75de5e9b3b9d9b2385b81663bafa698560683b /mbbsd/bbs.c | |
parent | 81aedaf08d5fb34eddb2cf838a434aed1bfe3a6f (diff) | |
download | pttbbs-5a901f172ecacd3914cd473667cbd4dc10b8445a.tar pttbbs-5a901f172ecacd3914cd473667cbd4dc10b8445a.tar.gz pttbbs-5a901f172ecacd3914cd473667cbd4dc10b8445a.tar.bz2 pttbbs-5a901f172ecacd3914cd473667cbd4dc10b8445a.tar.lz pttbbs-5a901f172ecacd3914cd473667cbd4dc10b8445a.tar.xz pttbbs-5a901f172ecacd3914cd473667cbd4dc10b8445a.tar.zst pttbbs-5a901f172ecacd3914cd473667cbd4dc10b8445a.zip |
- ignore bottom for recommending in special modes
- general message fix
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3689 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r-- | mbbsd/bbs.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 4e171012..784ca75c 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -2744,15 +2744,16 @@ recommend(int ent, fileheader_t * fhdr, const char *direct) // warn if in non-standard mode { char *p = strrchr(direct, '/'); - if (!p || strcmp(p+1, FN_DIR) != 0) + // allow .DIR or .DIR.bottom + if (!p || strncmp(p+1, FN_DIR, strlen(FN_DIR)) != 0) { ymsg --; move(ymsg--, 0); clrtoeol(); - outs(ANSI_COLOR(1;31) - "』眤タ疭家Α(穓碝╰...)" + outs(ANSI_COLOR(1;33) + "』眤タ穓碝(夹肈...)┪ㄤウ疭家Α" "崩ゅ璸计籔э癘魁盢穦だ秨璸衡" ANSI_RESET "\n" - " 璝稱タ盽璸计叫癶家Α\n"); + " 璝稱タ盽璸计叫オ龄癶タ盽家Α\n"); } } |