aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/person.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-06-17 18:06:46 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-06-17 18:06:46 +0100
commitfd8256beea549a1650cd8fbe1f1d79c7b08a0772 (patch)
treeb31d9118a12492a2d777d57b286fc889b5d718d4 /lib/mauve/person.rb
parente806fe922cf898a38c17ceeda4555e153943c999 (diff)
Reinstated relevance.
Diffstat (limited to 'lib/mauve/person.rb')
-rw-r--r--lib/mauve/person.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mauve/person.rb b/lib/mauve/person.rb
index 2689bb3..2a6ddee 100644
--- a/lib/mauve/person.rb
+++ b/lib/mauve/person.rb
@@ -116,6 +116,7 @@ module Mauve
# Deals with AlertChange database entry.
last_change = AlertChanged.first(:alert_id => alert.id, :person => username)
+
if not last_change.nil?
if not last_change.remind_at.nil? and not remind_at.nil?
if last_change.remind_at.to_time < remind_at
@@ -139,7 +140,7 @@ module Mauve
last_change.was_relevant = true if false == last_change.nil?
end
- send_alert(level, alert ) # if last_change.was_relevant_when_raised?
+ send_alert(level, alert) if is_relevant # last_change.was_relevant_when_raised?
end
def remind(alert, level)