diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-05-26 13:14:44 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-05-26 13:14:44 +0800 |
commit | 80f0bbd843a7462894fc1b23ed0281d2df1ddbd0 (patch) | |
tree | c21876de43e6aef808af109442c78c2247c13032 | |
parent | 6c97e7169d24ff4a3b8e645527d3a972f9eb79d7 (diff) | |
download | pttbbs-80f0bbd843a7462894fc1b23ed0281d2df1ddbd0.tar pttbbs-80f0bbd843a7462894fc1b23ed0281d2df1ddbd0.tar.gz pttbbs-80f0bbd843a7462894fc1b23ed0281d2df1ddbd0.tar.bz2 pttbbs-80f0bbd843a7462894fc1b23ed0281d2df1ddbd0.tar.lz pttbbs-80f0bbd843a7462894fc1b23ed0281d2df1ddbd0.tar.xz pttbbs-80f0bbd843a7462894fc1b23ed0281d2df1ddbd0.tar.zst pttbbs-80f0bbd843a7462894fc1b23ed0281d2df1ddbd0.zip |
recommend fix
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@243 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/bbs.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 31cde584..a700654c 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1,4 +1,4 @@ -/* $Id: bbs.c,v 1.30 2002/05/26 04:53:19 ptt Exp $ */ +/* $Id: bbs.c,v 1.31 2002/05/26 05:14:44 ptt Exp $ */ #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -15,12 +15,6 @@ #include "proto.h" extern struct bcache_t *brdshm; -/* -static int g_board_names(boardheader_t *fhdr) { - AddNameList(fhdr->brdname); - return 0; -} -*/ extern userec_t cuser; extern void touchdircache(int bid); extern int TagNum; @@ -1172,9 +1166,10 @@ static int recommend(int ent, fileheader_t *fhdr, char *direct) { || yn[0]!='y') return FULLUPDATE; sprintf(buf, - "\033[1;31m→\033[33m %s推薦:%s\033[m 來自: %s (%02d/%02d %02d:%02d)\n", - cuser.userid, path, fromhost, - ptime->tm_mon+1,ptime->tm_mday,ptime->tm_hour,ptime->tm_min) ; + "\033[1;31m→\033[33m %s推薦:%s\033[m %*s 來自: %s %02d/%02d\n", + cuser.userid, path, + 55-strlen(cuser.userid)-strlen(path), " ",fromhost, + ptime->tm_mon+1,ptime->tm_mday) ; setdirpath(path, direct, fhdr->filename); log_file(path, buf); if(fhdr->recommend<9) |