summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-11-01 00:30:16 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-11-01 00:30:16 +0000
commit6be3b87e6bd31b5fae61df4daa3d99dd181d3044 (patch)
treefa205741c9cf797df6a9ae8a189acc52e398c249 /data
parent3f8710a19b6989cd1c67629a92fd992968579456 (diff)
reaction plugin: better matching for non-regexp triggers
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/reaction.rb2
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