lib/hipbot/message.rb in hipbot-0.1.0 vs lib/hipbot/message.rb in hipbot-0.2.0
- old
+ new
@@ -20,9 +20,9 @@
def strip_recipient body
body.gsub(/^@\w+\W*/, '')
end
def mentions
- recipients[1..-1] # TODO: Fix global message case
+ recipients[1..-1] || [] # TODO: Fix global message case
end
end
end