From 80f0bbd843a7462894fc1b23ed0281d2df1ddbd0 Mon Sep 17 00:00:00 2001 From: ptt Date: Sun, 26 May 2002 05:14:44 +0000 Subject: recommend fix git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@243 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 15 +++++---------- 1 file 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 #include #include @@ -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) -- cgit v1.2.3