From 3b1b5450c2b18864c063286376b99cbbaa76ec6a Mon Sep 17 00:00:00 2001
From: victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>
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')

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("�z�O�s�H��ƥةήe�q %d �W�X�W�� %d, �о�z",
-		   mailkeep, mailmaxkeep);
+	    vmsg("�z�O�s�H��ƥ� %d �W�X�W�� %d, �о�z", mailkeep, mailmaxkeep);
 	    return mailkeep;
 	}
+	else if (mailsum > mailsumlimit) {
+	    bell();
+	    bell();
+	    vmsg("�z�O�s�H��e�q %d �W�X�W�� %d, �о�z", mailsum, mailsumlimit);
+	    return mailsum;
+	}
     }
     return 0;
 }
-- 
cgit v1.2.3