summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/reaction.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/data/rbot/plugins/reaction.rb b/data/rbot/plugins/reaction.rb
index 0ec75d58..ad8f2431 100644
--- a/data/rbot/plugins/reaction.rb
+++ b/data/rbot/plugins/reaction.rb
@@ -66,9 +66,9 @@ class ::Reaction
end
@trigger = [act]
if rex.sub!(%r@^([/!])(.*)\1$@, '\2')
- @trigger << Regexp.new(rex)
+ @trigger << Regexp.new(rex, true)
else
- @trigger << Regexp.new(/\b#{Regexp.escape(rex)}\b/u)
+ @trigger << Regexp.new(/\b#{Regexp.escape(rex)}\b/ui)
end
end
@@ -241,7 +241,7 @@ class ReactionPlugin < Plugin
def find_reaction(trigger)
@reactions.find { |react|
- react.raw_trigger == trigger
+ react.raw_trigger.downcase == trigger.downcase
}
end