From d9899b3d78d19ce9189f134ab9104374c007657f Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 21 Sep 2007 14:24:19 +0000 Subject: reaction plugin: quoted multi-word triggers in [1189] were not being unquoted when setting up the trigger --- data/rbot/plugins/reaction.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'data/rbot') 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 -- cgit v1.2.3