diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-11-01 00:30:16 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-11-01 00:30:16 +0000 |
commit | 6be3b87e6bd31b5fae61df4daa3d99dd181d3044 (patch) | |
tree | fa205741c9cf797df6a9ae8a189acc52e398c249 /data | |
parent | 3f8710a19b6989cd1c67629a92fd992968579456 (diff) |
reaction plugin: better matching for non-regexp triggers
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/reaction.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/reaction.rb b/data/rbot/plugins/reaction.rb index cf7685ec..6f94fb7c 100644 --- a/data/rbot/plugins/reaction.rb +++ b/data/rbot/plugins/reaction.rb @@ -69,7 +69,7 @@ class ::Reaction @trigger << Regexp.new(rex, true) else rex.sub!(/^(["'])(.*)\1$/, '\2') - @trigger << Regexp.new(/\b#{Regexp.escape(rex)}\b/ui) + @trigger << Regexp.new(/\b#{Regexp.escape(rex)}(?:\b|$)/ui) end end |