From 3b1b5450c2b18864c063286376b99cbbaa76ec6a Mon Sep 17 00:00:00 2001 From: victor Date: Sat, 15 Jan 2005 04:31:45 +0000 Subject: specified alert git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2400 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mail.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'mbbsd/mail.c') diff --git a/mbbsd/mail.c b/mbbsd/mail.c index cb29f976..631c9182 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -162,14 +162,18 @@ chkmailbox() if (!HAVE_PERM(PERM_SYSOP) && !HAVE_PERM(PERM_MAILLIMIT)) { if(!mailkeep) setupmailusage(); m_init(); - if (mailkeep > mailmaxkeep || - mailsum > mailsumlimit) { + if (mailkeep > mailmaxkeep) { bell(); bell(); - vmsg("您保存信件數目或容量 %d 超出上限 %d, 請整理", - mailkeep, mailmaxkeep); + vmsg("您保存信件數目 %d 超出上限 %d, 請整理", mailkeep, mailmaxkeep); return mailkeep; } + else if (mailsum > mailsumlimit) { + bell(); + bell(); + vmsg("您保存信件容量 %d 超出上限 %d, 請整理", mailsum, mailsumlimit); + return mailsum; + } } return 0; } -- cgit v1.2.3