chomp zappbrannigan quotes

master
Michael Smith 2012-05-30 15:44:28 -06:00
parent 8c072f93c3
commit 7c610d84c1
1 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,9 @@ zci is_cached => 0;
handle query => sub {
my @quotes = share('quotes.txt')->slurp;
my $rand = int(rand(scalar(@quotes)));
return $quotes[$rand];
my $quote = $quotes[$rand];
chomp $quote;
return $quote;
};
1;