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 |
|
/** |