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

- old
+ new

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