diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-05-24 15:08:22 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-05-24 15:08:22 +0800 |
commit | 16277e8e11126caf4fd0e59dc756a9d50ee4a401 (patch) | |
tree | 4d3ea50a09135653b3e83c63d44e3dea7b7a4db1 | |
parent | e45efdaebed55e5825f65d74e0a07c0a7751ab72 (diff) | |
download | pttbbs-16277e8e11126caf4fd0e59dc756a9d50ee4a401.tar pttbbs-16277e8e11126caf4fd0e59dc756a9d50ee4a401.tar.gz pttbbs-16277e8e11126caf4fd0e59dc756a9d50ee4a401.tar.bz2 pttbbs-16277e8e11126caf4fd0e59dc756a9d50ee4a401.tar.lz pttbbs-16277e8e11126caf4fd0e59dc756a9d50ee4a401.tar.xz pttbbs-16277e8e11126caf4fd0e59dc756a9d50ee4a401.tar.zst pttbbs-16277e8e11126caf4fd0e59dc756a9d50ee4a401.zip |
use new cooldown interface in mail
make compiler happy
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2735 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | include/proto.h | 3 | ||||
-rw-r--r-- | mbbsd/mail.c | 8 |
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; |