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 /mbbsd | |
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
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/mail.c | 8 |
1 files changed, 2 insertions, 6 deletions
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; |