summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-26 09:45:06 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-26 09:45:06 +0800
commit20dff7e7ece885e6d42658c22ebeede4cc678083 (patch)
tree19a51d74b2d3e43de4b96020e56b70ce043dc341
parent27f26b202e7a36223e142cc8a5984a49b3fe7235 (diff)
downloadpttbbs-20dff7e7ece885e6d42658c22ebeede4cc678083.tar
pttbbs-20dff7e7ece885e6d42658c22ebeede4cc678083.tar.gz
pttbbs-20dff7e7ece885e6d42658c22ebeede4cc678083.tar.bz2
pttbbs-20dff7e7ece885e6d42658c22ebeede4cc678083.tar.lz
pttbbs-20dff7e7ece885e6d42658c22ebeede4cc678083.tar.xz
pttbbs-20dff7e7ece885e6d42658c22ebeede4cc678083.tar.zst
pttbbs-20dff7e7ece885e6d42658c22ebeede4cc678083.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@239 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/bbs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 7e441841..cea57c3e 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1,4 +1,4 @@
-/* $Id: bbs.c,v 1.27 2002/05/25 18:16:40 ptt Exp $ */
+/* $Id: bbs.c,v 1.28 2002/05/26 01:45:06 ptt Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -1153,7 +1153,7 @@ 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(!HAS_PERM(PERM_LOGINOK)) return DONOTHING;
+ if(!(currmode & MODE_POST)) return DONOTHING;
if(fhdr->recommend>9 || fhdr->recommend<0 )// 暫時性的code 原來舊有值取消
fhdr->recommend=0;