From e2026f38df12826462e0d277c0e195dd5a4e43da Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 8 Feb 2007 11:12:54 +0000 Subject: Message mapper: we are ony interested in matching messages that fully agree with the template --- lib/rbot/messagemapper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rbot/messagemapper.rb b/lib/rbot/messagemapper.rb index 39692868..39b258e3 100644 --- a/lib/rbot/messagemapper.rb +++ b/lib/rbot/messagemapper.rb @@ -438,7 +438,7 @@ module Irc # debug "Delimited optionals: #{rx.inspect}" rx.gsub!(/(?:\\ )+/, "\\s+") # debug "Corrected spaces: #{rx.inspect}" - @regexp = Regexp.new(rx) + @regexp = Regexp.new("^#{rx}$") end # Recognize the provided string components, returning a hash of -- cgit v1.2.3