lib/botfly/matcher/subject_matcher.rb in botfly-0.1.1 vs lib/botfly/matcher/subject_matcher.rb in botfly-0.2.1

- old
+ new

@@ -3,11 +3,11 @@ # Msg: body, chat_state, subject, type (:chat, :error, :groupchat, :headline, :normal), from, to module Botfly class SubjectMatcher < Matcher def match(params) msg = params[:message] - Botfly.logger.debug " MCH: Matching #{@condition.inspect} against #{msg.subject.inspect}" - Botfly.logger.debug " RESULT: #{(msg.subject =~ @condition).inspect}" + Botfly.logger.debug "MCH: Matching #{@condition.inspect} against #{msg.subject.inspect}" + Botfly.logger.debug "RESULT: #{(msg.subject =~ @condition).inspect}" return msg.subject.node =~ @condition end end end \ No newline at end of file