From d79a25660eee5010e054d246bfd20d5165a9279c Mon Sep 17 00:00:00 2001 From: Dylan Lloyd Date: Mon, 11 Jun 2012 15:53:55 -0400 Subject: [PATCH] restricted zapp brannigan goodie to m/quote/ --- lib/DDG/Goodie/ZappBrannigan.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/DDG/Goodie/ZappBrannigan.pm b/lib/DDG/Goodie/ZappBrannigan.pm index b833a2f31..acfb42538 100644 --- a/lib/DDG/Goodie/ZappBrannigan.pm +++ b/lib/DDG/Goodie/ZappBrannigan.pm @@ -7,6 +7,7 @@ triggers any => "zapp", "brannigan"; zci is_cached => 0; handle query => sub { + return if $_ !~ m/quote/; my @quotes = share('quotes.txt')->slurp; my $rand = int(rand(scalar(@quotes))); my $quote = $quotes[$rand];