aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/notification.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mauve/notification.rb')
-rw-r--r--lib/mauve/notification.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/mauve/notification.rb b/lib/mauve/notification.rb
index 2220211..02bf6fd 100644
--- a/lib/mauve/notification.rb
+++ b/lib/mauve/notification.rb
@@ -31,7 +31,7 @@ module Mauve
@time = time
@alert = alert
@during = during || Proc.new { true }
- @logger = Log4r::Logger.new "mauve::DuringRunner"
+ @logger = Log4r::Logger.new "Mauve::DuringRunner"
end
def now?
@@ -137,6 +137,11 @@ module Mauve
#
def alert_changed(alert)
+ if people.nil? or people.empty?
+ logger.warn "No people found in for notification #{list}"
+ return
+ end
+
# Should we notificy at all?
is_relevant = DuringRunner.new(MauveTime.now, alert, &during).now?