ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/client/alerters/IRC__Alerter.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/client/alerters/IRC__Alerter.java (file contents):
Revision 1.25 by ajm, Fri Mar 23 01:09:51 2001 UTC vs.
Revision 1.26 by tdb, Sat Mar 24 03:47:50 2001 UTC

# Line 80 | Line 80 | public class IRC__Alerter extends AlerterSkeleton {
80              // send the message
81              _logger.write(toString(), Logger.DEBUG, "Sending " + _name + " at "+ alertType + " level");
82              _ircbot.sendMsg(message);
83 <            _lastAlert = message;
84 <            _lastAlertTime = System.currentTimeMillis();
85 <            _alertCount ++;
83 >            // count sent alerts
84 >            _alertCount++;
85          } else {
86 <            _ignoredCount ++;
86 >            // don't send, but keep a count that we ignored it
87 >            _ignoredCount++;
88          }
89 +        // we'll always store the "last alert", regardless
90 +        // of whether we actually display it or not
91 +        _lastAlert = message;
92 +        _lastAlertTime = System.currentTimeMillis();
93      }
94  
95      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines