lib/bot/responder.rb in bot-0.0.26 vs lib/bot/responder.rb in bot-0.0.27

- old
+ new

@@ -83,9 +83,11 @@ message['delay'] = delay message end def match_message(match) + return false unless message['body'] + if match.is_a?(Regexp) !!(message['body'] =~ match) else message['body'].upcase == match.upcase end