summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-26 12:53:19 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-26 12:53:19 +0800
commit6c97e7169d24ff4a3b8e645527d3a972f9eb79d7 (patch)
treeb912ae4d1d57927968a1e585d613b0eb3065c9b7 /mbbsd/bbs.c
parent38fff347b70f913ca80942e63e5f3f1bdb2e654c (diff)
downloadpttbbs-6c97e7169d24ff4a3b8e645527d3a972f9eb79d7.tar
pttbbs-6c97e7169d24ff4a3b8e645527d3a972f9eb79d7.tar.gz
pttbbs-6c97e7169d24ff4a3b8e645527d3a972f9eb79d7.tar.bz2
pttbbs-6c97e7169d24ff4a3b8e645527d3a972f9eb79d7.tar.lz
pttbbs-6c97e7169d24ff4a3b8e645527d3a972f9eb79d7.tar.xz
pttbbs-6c97e7169d24ff4a3b8e645527d3a972f9eb79d7.tar.zst
pttbbs-6c97e7169d24ff4a3b8e645527d3a972f9eb79d7.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@242 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index e37f96da..31cde584 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1,4 +1,4 @@
-/* $Id: bbs.c,v 1.29 2002/05/26 02:39:11 ptt Exp $ */
+/* $Id: bbs.c,v 1.30 2002/05/26 04:53:19 ptt Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -1153,7 +1153,8 @@ static int recommend(int ent, fileheader_t *fhdr, char *direct) {
struct tm *ptime=localtime(&now);
extern userec_t xuser;
char buf[200],path[200], yn[5];
- if(!(currmode & MODE_POST)) return DONOTHING;
+ if(!(currmode & MODE_POST) || !strcmp(fhdr->owner,cuser.userid))
+ return DONOTHING;
if(fhdr->recommend>9 || fhdr->recommend<0 )// 暫時性的code 原來舊有值取消
fhdr->recommend=0;
@@ -1171,7 +1172,7 @@ 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",
+ "\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) ;
setdirpath(path, direct, fhdr->filename);