From 16277e8e11126caf4fd0e59dc756a9d50ee4a401 Mon Sep 17 00:00:00 2001 From: wens Date: Tue, 24 May 2005 07:08:22 +0000 Subject: 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 --- mbbsd/mail.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'mbbsd') 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; -- cgit v1.2.3