summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-11-09 01:45:43 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-11-09 01:45:43 +0800
commit7894efba356df7180602cec5a1ef64228c92e9f6 (patch)
treeef66e05a9ce801706d3b4c9f51bdaa48f51e7c7b
parent0e98301333915f6ad4a7caf99d3d90b8f448c928 (diff)
downloadpttbbs-7894efba356df7180602cec5a1ef64228c92e9f6.tar
pttbbs-7894efba356df7180602cec5a1ef64228c92e9f6.tar.gz
pttbbs-7894efba356df7180602cec5a1ef64228c92e9f6.tar.bz2
pttbbs-7894efba356df7180602cec5a1ef64228c92e9f6.tar.lz
pttbbs-7894efba356df7180602cec5a1ef64228c92e9f6.tar.xz
pttbbs-7894efba356df7180602cec5a1ef64228c92e9f6.tar.zst
pttbbs-7894efba356df7180602cec5a1ef64228c92e9f6.zip
���@�����i�H����, 40������
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@563 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/bbs.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c
index 9e905b90..e8fa0075 100644
--- a/pttbbs/mbbsd/bbs.c
+++ b/pttbbs/mbbsd/bbs.c
@@ -1,4 +1,4 @@
-/* $Id: bbs.c,v 1.74 2002/11/07 13:59:35 in2 Exp $ */
+/* $Id: bbs.c,v 1.75 2002/11/08 17:45:43 in2 Exp $ */
#include "bbs.h"
static void
@@ -1202,6 +1202,7 @@ recommend_cancel(int ent, fileheader_t * fhdr, char *direct)
touchdircache(currbid);
return FULLUPDATE;
}
+
static int
recommend(int ent, fileheader_t * fhdr, char *direct)
{
@@ -1227,20 +1228,23 @@ recommend(int ent, fileheader_t * fhdr, char *direct)
/* ¼È®É©Êªº code ­ì¨Ó¦³­È¨ú®ø */
fhdr->recommend = 0;
-#if 0
+ if (fhdr->recommend < 0 && strcmp(cuser.userid, fhdr->owner) == 0){
+ vmsg("ĵ§i! ¥»¤H¤£¯à±ÀÂ˲Ĥ@¦¸!");
+ return FULLUPDATE;
+ }
#ifndef DEBUG
if (!(currmode & MODE_BOARD) && getuser(cuser.userid) &&
- now - xuser.recommend < 60) {
+ now - xuser.recommend < 40) {
move(b_lines - 1, 0);
prints("Â÷¤W¦¸±ÀÂˮɶ¡¤ÓªñÅo, ½Ð¦hªáÂI®É¶¡¥J²Ó¾\\Ū¤å³¹!");
pressanykey();
return FULLUPDATE;
}
#endif
-#endif
if (!getdata(b_lines - 2, 0, "±ÀÂË»y:", path, 40, DOECHO) ||
- !getdata(b_lines - 1, 0, "½T©w­n±ÀÂË, ½Ð¥J²Ó¦Ò¼{(Y/N)?[n] ", yn, 5, LCECHO)
+ !getdata(b_lines - 1, 0, "½T©w­n±ÀÂË, ½Ð¥J²Ó¦Ò¼{(Y/N)?[n] ",
+ yn, 5, LCECHO)
|| yn[0] != 'y')
return FULLUPDATE;