lib/ppl/command/bday.rb in ppl-0.9.0 vs lib/ppl/command/bday.rb in ppl-1.0.0

- old
+ new

@@ -44,11 +44,16 @@ if contact_id.nil? raise Ppl::Error::IncorrectUsage, "No contact specified" end contact = @storage.require_contact(contact_id) - line = @show_format.process(contact) - output.line(line) + birthday = @show_format.process(contact) + if birthday != "" + output.line(birthday) + true + else + false + end end def set_birthday(input, output) contact_id = input.arguments.shift birthday = input.arguments.shift