aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/people_list.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mauve/people_list.rb')
-rw-r--r--lib/mauve/people_list.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/mauve/people_list.rb b/lib/mauve/people_list.rb
index 23e0c1e..32e0708 100644
--- a/lib/mauve/people_list.rb
+++ b/lib/mauve/people_list.rb
@@ -34,11 +34,16 @@ module Mauve
# Return the array of people
#
def people
- logger.warn "No-one found in the people list for #{self.label}" if self.list.empty?
- list.collect do |name|
+ l = list.collect do |name|
Configuration.current.people.has_key?(name) ? Configuration.current.people[name] : nil
end.reject{|person| person.nil?}
+ #
+ # Hmm.. no-one in the list?!
+ #
+ logger.warn "No-one found in the people list for #{self.label}" if l.empty?
+
+ l
end
end