--- projects/cms/source/server/uk/org/iscream/cms/server/client/alerters/IRC__Alerter.java 2001/03/23 01:09:51 1.25 +++ projects/cms/source/server/uk/org/iscream/cms/server/client/alerters/IRC__Alerter.java 2001/03/24 03:47:50 1.26 @@ -17,8 +17,8 @@ import java.text.DateFormat; * Clean shutdown could be achieved by stopping the run() method in the * IRCBot inner class. * - * @author $Author: ajm $ - * @version $Id: IRC__Alerter.java,v 1.25 2001/03/23 01:09:51 ajm Exp $ + * @author $Author: tdb $ + * @version $Id: IRC__Alerter.java,v 1.26 2001/03/24 03:47:50 tdb Exp $ */ public class IRC__Alerter extends AlerterSkeleton { @@ -27,7 +27,7 @@ public class IRC__Alerter extends AlerterSkeleton { /** * The current CVS revision of this class */ - public final String REVISION = "$Revision: 1.25 $"; + public final String REVISION = "$Revision: 1.26 $"; /** * A description of this alerter @@ -80,12 +80,16 @@ public class IRC__Alerter extends AlerterSkeleton { // send the message _logger.write(toString(), Logger.DEBUG, "Sending " + _name + " at "+ alertType + " level"); _ircbot.sendMsg(message); - _lastAlert = message; - _lastAlertTime = System.currentTimeMillis(); - _alertCount ++; + // count sent alerts + _alertCount++; } else { - _ignoredCount ++; + // don't send, but keep a count that we ignored it + _ignoredCount++; } + // we'll always store the "last alert", regardless + // of whether we actually display it or not + _lastAlert = message; + _lastAlertTime = System.currentTimeMillis(); } /**