summaryrefslogtreecommitdiff
path: root/rbot/plugins/quotes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'rbot/plugins/quotes.rb')
-rw-r--r--rbot/plugins/quotes.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/rbot/plugins/quotes.rb b/rbot/plugins/quotes.rb
index 072e352a..0e46b495 100644
--- a/rbot/plugins/quotes.rb
+++ b/rbot/plugins/quotes.rb
@@ -64,7 +64,7 @@ class QuotePlugin < Plugin
return 0 unless(@lists.has_key?(channel))
return 0 unless(@lists[channel].length > 0)
if(regexp)
- matches = @lists[channel].compact.find_all {|a| a.quote =~ /#{regexp}/ }
+ matches = @lists[channel].compact.find_all {|a| a.quote =~ /#{regexp}/i }
else
matches = @lists[channel].compact
end
@@ -73,7 +73,7 @@ class QuotePlugin < Plugin
def searchquote(source, channel, regexp)
return nil unless(@lists.has_key?(channel))
return nil unless(@lists[channel].length > 0)
- matches = @lists[channel].compact.find_all {|a| a.quote =~ /#{regexp}/ }
+ matches = @lists[channel].compact.find_all {|a| a.quote =~ /#{regexp}/i }
if(matches.length > 0)
return matches[rand(matches.length)], @lists[channel].length - 1
else