aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/notification.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2013-05-16 14:13:45 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2013-05-16 14:13:45 +0100
commitfa7e7b8dc9d3f2333869703fc266405ee80cd5c8 (patch)
tree292fc5bf2e3388773b337576bacff39d7ccea6be /lib/mauve/notification.rb
parent72723a723ef7c6bf368b472c32fca3c7c397616a (diff)
Notification of a user now generates just one history entry, as
opposed to one entry per method used. This ensures that the previous changes regarding notification suppression work for people with multiple methods of notification.
Diffstat (limited to 'lib/mauve/notification.rb')
-rw-r--r--lib/mauve/notification.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/mauve/notification.rb b/lib/mauve/notification.rb
index 745660a..c164afb 100644
--- a/lib/mauve/notification.rb
+++ b/lib/mauve/notification.rb
@@ -319,9 +319,7 @@ module Mauve
#
# A bit of alert de-bouncing.
#
- if already_sent_to.include?(person.username)
- logger.info("Already sent notification of #{alert} to #{person.username}")
- else
+ unless already_sent_to.include?(person.username)
person.send_alert(level, alert)
already_sent_to << person.username
end