]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/reaction.rb
reaction plugin: quoted multi-word triggers in [1189] were not being unquoted when...
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / reaction.rb
index ee8abbd54b67237778ac292f18ecc8031dfa815b..f70aefa1dba83fec74867502f46571040d3ffdf2 100644 (file)
@@ -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