| 94 | bool CAlert::IsInEffect() const { return (GetAdjustedTime() < nExpiration); } |
| 95 | |
| 96 | bool CAlert::Cancels(const CAlert& alert) const { |
| 97 | if (!IsInEffect()) |
| 98 | return false; // this was a no-op before 31403 |
| 99 | return (alert.nID <= nCancel || setCancel.count(alert.nID)); |
| 100 | } |
| 101 | |
| 102 | bool CAlert::AppliesTo(int nVersion, string strSubVerIn) const { |
| 103 | // TODO: rework for client-version-embedded-in-strSubVer ? |