summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/reaction.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-21 14:24:19 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-21 14:24:19 +0000
commitd9899b3d78d19ce9189f134ab9104374c007657f (patch)
tree89e0e95f5d058056361ba100b26587daed554951 /data/rbot/plugins/reaction.rb
parentb19343b91d2e02ee6e26898f2e80b5780a420cb4 (diff)
reaction plugin: quoted multi-word triggers in [1189] were not being unquoted when setting up the trigger
Diffstat (limited to 'data/rbot/plugins/reaction.rb')
-rw-r--r--data/rbot/plugins/reaction.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/rbot/plugins/reaction.rb b/data/rbot/plugins/reaction.rb
index ee8abbd5..f70aefa1 100644
--- a/data/rbot/plugins/reaction.rb
+++ b/data/rbot/plugins/reaction.rb
@@ -68,6 +68,7 @@ class ::Reaction
if rex.sub!(%r@^([/!])(.*)\1$@, '\2')
@trigger << Regexp.new(rex, true)
else
+ rex.sub!(/^(["'])(.*)\1$/, '\2')
@trigger << Regexp.new(/\b#{Regexp.escape(rex)}\b/ui)
end
end