summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/proto.h3
-rw-r--r--mbbsd/mail.c8
2 files changed, 5 insertions, 6 deletions
diff --git a/include/proto.h b/include/proto.h
index 43db242b..1e031e9a 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -80,6 +80,9 @@ int save_violatelaw(void);
int board_select(void);
int board_digest(void);
int do_limitedit(int ent, fileheader_t * fhdr, const char *direct);
+#ifdef USE_COOLDOWN
+int check_cooldown(boardheader_t *bp);
+#endif
/* board */
#define setutmpbid(bid) currutmp->brc_id=bid;
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index cfae7f73..3d6c9324 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -1070,12 +1070,8 @@ mail_cross_post(int ent, fileheader_t * fhdr, const char *direct)
}
#ifdef USE_COOLDOWN
- if ( !((currmode & MODE_BOARD) || HAS_PERM(PERM_SYSOP)) &&
- ((bcache[ent - 1].brdattr & BRD_COOLDOWN) && now < cooldowntimeof(usernum)) ) {
- move(5, 10);
- vmsg("§NÀR¤@¤U§a¡I");
- return FULLUPDATE;
- }
+ if(check_cooldown(&bcache[ent - 1]))
+ return READ_REDRAW;
#endif
ent = 1;