aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/notification.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-06-17 17:42:19 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-06-17 17:42:19 +0100
commite806fe922cf898a38c17ceeda4555e153943c999 (patch)
treeb5cef9ec1443a314ee002cdd7aca006b9127fb42 /lib/mauve/notification.rb
parent0b83323a3bccff72da4aadd8f38d0305a5fdcca4 (diff)
SMS return true on succes.
Diffstat (limited to 'lib/mauve/notification.rb')
-rw-r--r--lib/mauve/notification.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/mauve/notification.rb b/lib/mauve/notification.rb
index c5e462b..7ce0da3 100644
--- a/lib/mauve/notification.rb
+++ b/lib/mauve/notification.rb
@@ -83,8 +83,7 @@ module Mauve
end
def working_hours?
- now = (@time || MauveTime.now)
- now.to_mauvetime.working_hours?
+ now.working_hours?
end
# Return true in the dead zone between 3 and 7 in the morning.
@@ -93,8 +92,7 @@ module Mauve
#
# @return [Boolean] Whether now is a in the dead zone or not.
def dead_zone?
- now = (@time || MauveTime.now)
- now.to_mauvetime.dead_zone?
+ now.dead_zone?
end
end