summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-08-25 15:37:39 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-08-25 15:37:39 +0800
commit76ed1d523a9471bb5a0535b0752a0091f064e3e3 (patch)
tree1813adaf2f9e228dc353655e31fc1a6ff97b082b
parent093e88b99f01594ca10618c6bfa03acddf6dcfa4 (diff)
downloadpttbbs-76ed1d523a9471bb5a0535b0752a0091f064e3e3.tar
pttbbs-76ed1d523a9471bb5a0535b0752a0091f064e3e3.tar.gz
pttbbs-76ed1d523a9471bb5a0535b0752a0091f064e3e3.tar.bz2
pttbbs-76ed1d523a9471bb5a0535b0752a0091f064e3e3.tar.lz
pttbbs-76ed1d523a9471bb5a0535b0752a0091f064e3e3.tar.xz
pttbbs-76ed1d523a9471bb5a0535b0752a0091f064e3e3.tar.zst
pttbbs-76ed1d523a9471bb5a0535b0752a0091f064e3e3.zip
fix recommend
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@494 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/bbs.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 23d4b4aa..59d9b24d 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1,4 +1,4 @@
-/* $Id: bbs.c,v 1.68 2002/08/25 07:13:53 in2 Exp $ */
+/* $Id: bbs.c,v 1.69 2002/08/25 07:37:39 in2 Exp $ */
#include "bbs.h"
static void
@@ -1224,6 +1224,7 @@ recommend(int ent, fileheader_t * fhdr, char *direct)
/* 暫時性的 code 原來舊有值取消 */
fhdr->recommend = 0;
+#ifndef DEBUG
if (!(currmode & MODE_BOARD) && getuser(cuser.userid) &&
now - xuser.recommend < 60) {
move(b_lines - 1, 0);
@@ -1231,16 +1232,18 @@ recommend(int ent, fileheader_t * fhdr, char *direct)
pressanykey();
return FULLUPDATE;
}
+#endif
if (!getdata(b_lines - 2, 0, "推薦語:", path, 40, DOECHO) ||
!getdata(b_lines - 1, 0, "確定要推薦, 請仔細考慮(Y/N)?[n] ", yn, 5, LCECHO)
|| yn[0] != 'y')
return FULLUPDATE;
snprintf(buf, sizeof(buf),
- "\033[1;31m→ \033[33m%s\033[m\033[33m:%s\033[m%*s推薦自:%s %02d/%02d\n",
+ "\033[1;31m→ \033[33m%s\033[m\033[33m:%s\033[m%*s推%15s %02d/%02d\n",
cuser.userid, path,
- 45 - strlen(cuser.userid) - strlen(path), " ", fromhost,
+ 51 - 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) {
fhdr->recommend++;