From c0ade8a2f68712575ee3455c6f98899b091c450a Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 25 Jun 2022 17:31:40 -0700 Subject: [PATCH] Plugin/GoogleSearch: show 3 matches instead of 1 --- lib/PBot/Plugin/GoogleSearch.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PBot/Plugin/GoogleSearch.pm b/lib/PBot/Plugin/GoogleSearch.pm index 5ae07f73..cab9eea9 100644 --- a/lib/PBot/Plugin/GoogleSearch.pm +++ b/lib/PBot/Plugin/GoogleSearch.pm @@ -38,7 +38,7 @@ sub cmd_googlesearch { my ($self, $context) = @_; return "Usage: google [-n ] query\n" if not length $context->{arguments}; - my $matches = 1; + my $matches = 3; $matches = $1 if $context->{arguments} =~ s/-n\s+([0-9]+)\s*//; $matches = 10 if $matches > 10;