diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-11-09 01:45:43 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-11-09 01:45:43 +0800 |
commit | 52d8247678ea9b8242a3d9264a937bc3d3d76405 (patch) | |
tree | 9ce68f11a5ceb9dc52c05a22911929122cce917d /mbbsd | |
parent | 1147d7d6d94f8e2abd26187436d3f38a169e3010 (diff) | |
download | pttbbs-52d8247678ea9b8242a3d9264a937bc3d3d76405.tar pttbbs-52d8247678ea9b8242a3d9264a937bc3d3d76405.tar.gz pttbbs-52d8247678ea9b8242a3d9264a937bc3d3d76405.tar.bz2 pttbbs-52d8247678ea9b8242a3d9264a937bc3d3d76405.tar.lz pttbbs-52d8247678ea9b8242a3d9264a937bc3d3d76405.tar.xz pttbbs-52d8247678ea9b8242a3d9264a937bc3d3d76405.tar.zst pttbbs-52d8247678ea9b8242a3d9264a937bc3d3d76405.zip |
���@�����i�H����, 40������
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@563 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/bbs.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 9e905b90..e8fa0075 100644 --- a/mbbsd/bbs.c +++ b/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©wn±ÀÂË, ½Ð¥J²Ó¦Ò¼{(Y/N)?[n] ", yn, 5, LCECHO) + !getdata(b_lines - 1, 0, "½T©wn±ÀÂË, ½Ð¥J²Ó¦Ò¼{(Y/N)?[n] ", + yn, 5, LCECHO) || yn[0] != 'y') return FULLUPDATE; |