diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-05-24 11:57:00 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-05-24 11:57:00 +0800 |
commit | 6b11452d711caada7c82bbc24ff0392ff1ecbba4 (patch) | |
tree | 883924f3b7fa7f14a9ed4b487319cb736e0a20c1 /mbbsd | |
parent | eff49de645852258333a4c5d7433c81cf00bb2e3 (diff) | |
download | pttbbs-6b11452d711caada7c82bbc24ff0392ff1ecbba4.tar pttbbs-6b11452d711caada7c82bbc24ff0392ff1ecbba4.tar.gz pttbbs-6b11452d711caada7c82bbc24ff0392ff1ecbba4.tar.bz2 pttbbs-6b11452d711caada7c82bbc24ff0392ff1ecbba4.tar.lz pttbbs-6b11452d711caada7c82bbc24ff0392ff1ecbba4.tar.xz pttbbs-6b11452d711caada7c82bbc24ff0392ff1ecbba4.tar.zst pttbbs-6b11452d711caada7c82bbc24ff0392ff1ecbba4.zip |
* fix wrong prototype for r2732
* fix link error without defining USE_COOLDOWN
* clean flag in curredit after replying
(thanks peter53.bbs@ptt2.cc)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2733 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/bbs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 6a7a87ce..a95415b1 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -816,6 +816,7 @@ do_generalboardreply(const fileheader_t * fhdr) strlcpy(currtitle, fhdr->title, sizeof(currtitle)); strlcpy(quote_user, fhdr->owner, sizeof(quote_user)); do_post(); + curredit &= ~EDIT_BOTH; } } *quote_file = 0; @@ -1949,8 +1950,11 @@ del_post(int ent, fileheader_t * fhdr, char *direct) if(i>=0 && i <= SIZE) { strncat(genbuf, fhdr->title, 64-strlen(genbuf)); + +#ifdef USE_COOLDOWN add_cooldowntime(tusernum, 60); add_posttimes(tusernum, 15); //Ptt: áµ² post for 1 hour +#endif if (!(inc_badpost(userid, 1) % 5)){ userec_t xuser; |