diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-21 14:24:19 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-21 14:24:19 +0000 |
commit | d9899b3d78d19ce9189f134ab9104374c007657f (patch) | |
tree | 89e0e95f5d058056361ba100b26587daed554951 /data | |
parent | b19343b91d2e02ee6e26898f2e80b5780a420cb4 (diff) |
reaction plugin: quoted multi-word triggers in [1189] were not being unquoted when setting up the trigger
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/reaction.rb | 1 |
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 |