summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/proto.h2
-rw-r--r--mbbsd/bbs.c4
2 files changed, 5 insertions, 1 deletions
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;