diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-02-08 11:12:54 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-02-08 11:12:54 +0000 |
commit | e2026f38df12826462e0d277c0e195dd5a4e43da (patch) | |
tree | 20fe54393cef5ba7ca1d08866fdae5a5e5f877ad /lib/rbot | |
parent | 2d63ed36235e1f9110b3afd7da42bb8ac52ef5fb (diff) |
Message mapper: we are ony interested in matching messages that fully agree with the template
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/messagemapper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |