From 6b11452d711caada7c82bbc24ff0392ff1ecbba4 Mon Sep 17 00:00:00 2001 From: scw Date: Tue, 24 May 2005 03:57:00 +0000 Subject: * 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 --- include/proto.h | 2 +- mbbsd/bbs.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/proto.h b/include/proto.h index eebcc8fd..43db242b 100644 --- a/include/proto.h +++ b/include/proto.h @@ -496,7 +496,7 @@ int delete_file(const char *dirname, int size, int ent, int (*filecheck)()); int delete_range(const char *fpath, int id1, int id2); int apply_record(const char *fpath, int (*fptr)(void*,void*), int size,void *arg); int search_rec(const char* dirname, int (*filecheck)()); -int append_record_forward(char *fpath, fileheader_t *record, int size); +int append_record_forward(char *fpath, fileheader_t *record, int size, const char *origid); int get_sum_records(const char* fpath, int size); int substitute_ref_record(const char* direct, fileheader_t *fhdr, int ent); int getindex(const char *fpath, fileheader_t *fh, int start); 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; -- cgit v1.2.3