aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/notification.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-04-27 11:12:27 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-04-27 11:12:27 +0100
commitdada535a41cba45be0eff77381d6c7e19ab49f51 (patch)
treef33ab8706c38f278fbdec539e69874d72a9e1b74 /lib/mauve/notification.rb
parentffb9ad5713f0f7b895ec142028abae16d824e3b9 (diff)
Added better time-based people list polling, and added a "calendar" method to
the config to easily generate Procs to call for people_lists.
Diffstat (limited to 'lib/mauve/notification.rb')
-rw-r--r--lib/mauve/notification.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mauve/notification.rb b/lib/mauve/notification.rb
index 8a5d241..899972b 100644
--- a/lib/mauve/notification.rb
+++ b/lib/mauve/notification.rb
@@ -122,8 +122,9 @@ module Mauve
#
def no_one_in(people_list)
return true unless Configuration.current.people_lists.has_key?(people_list)
+ @test_time = @time if @test_time.nil?
- return Configuration.current.people_lists[people_list].people.empty?
+ return Configuration.current.people_lists[people_list].people(@test_time).empty?
end
# Returns true if the current hour is in the list of hours given.