summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-05-07 02:11:00 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-05-07 02:11:00 +0800
commita091804d660ece09722849f2a8aabe92f8f02a4e (patch)
treed8e02205cb7e48af2577fc0e29c2df0495b451f5
parent1adb88351d465514e4d85fa31e493f14d119de1c (diff)
downloadpttbbs-a091804d660ece09722849f2a8aabe92f8f02a4e.tar
pttbbs-a091804d660ece09722849f2a8aabe92f8f02a4e.tar.gz
pttbbs-a091804d660ece09722849f2a8aabe92f8f02a4e.tar.bz2
pttbbs-a091804d660ece09722849f2a8aabe92f8f02a4e.tar.lz
pttbbs-a091804d660ece09722849f2a8aabe92f8f02a4e.tar.xz
pttbbs-a091804d660ece09722849f2a8aabe92f8f02a4e.tar.zst
pttbbs-a091804d660ece09722849f2a8aabe92f8f02a4e.zip
fix typo
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2719 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/bbs.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 5514addd..954ace1b 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -741,9 +741,12 @@ do_general(int isbid)
if (currbrdattr & BRD_ANONYMOUS)
do_crosspost("UnAnonymous", &postfile, fpath);
#ifdef USE_COOLDOWN
- if (cooldowntimeof(usernum)<now)
- add_cooldowntime(usernum, 5);
- add_posttimes(usernum, 1);
+ if(bp->nuser>30)
+ {
+ if (cooldowntimeof(usernum)<now)
+ add_cooldowntime(usernum, 5);
+ add_posttimes(usernum, 1);
+ }
#endif
}
pressanykey();
@@ -1096,9 +1099,12 @@ cross_post(int ent, const fileheader_t * fhdr, const char *direct)
if (!xfile.filemode && !(bp->brdattr & BRD_NOTRAN))
outgo_post(&xfile, xboard, cuser.userid, cuser.username);
#ifdef USE_COOLDOWN
- if (cooldowntimeof(usernum)<now)
- add_cooldowntime(usernum, 5);
- add_posttimes(usernum, 1);
+ if(bp->nuser>30)
+ {
+ if (cooldowntimeof(usernum)<now)
+ add_cooldowntime(usernum, 5);
+ add_posttimes(usernum, 1);
+ }
#endif
setbtotal(getbnum(xboard));
cuser.numposts++;
@@ -2521,7 +2527,7 @@ int check_cooldown(boardheader_t *bp)
return 1;
}
#ifdef NO_WATER_POST
- else if(bp->nuser>50 && posttimesof(usernum)==13)
+ else if(bp->nuser>30 && posttimesof(usernum)>=10)
{
vmsg("對不起,您的文章太水囉!用'X'推薦文章 (限制 %d 分 %d 秒)",
diff/60, diff%60);