From 69ddc82f0aef0fb31ff6b3f12ba11dcfa8d35758 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Mon, 30 Apr 2012 17:32:33 +0100 Subject: Fixed warn on nil method in person. --- lib/mauve/person.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/mauve') diff --git a/lib/mauve/person.rb b/lib/mauve/person.rb index a4acaf0..c1c12c6 100644 --- a/lib/mauve/person.rb +++ b/lib/mauve/person.rb @@ -169,7 +169,7 @@ module Mauve # notification_method = Configuration.current.notification_methods[name.to_s] - @logger.warn "Notification method '#{name}' not defined (#{@person.username})" if notification_method.nil? + logger.warn "Notification method '#{name}' not defined (#{@person.username})" if notification_method.nil? # # Work out the destination @@ -182,7 +182,7 @@ module Mauve destination = nil end - @logger.warn "#{name} destination for #{@person.username} not set" if destination.nil? + logger.warn "#{name} destination for #{@person.username} not set" if destination.nil? if args.first.is_a?(Hash) conditions = @base_conditions.merge(args.pop) -- cgit v1.2.1