3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-23 19:22:40 +01:00

Plugins/GoogleSearch: handle no results case

This commit is contained in:
Pragmatic Software 2020-05-05 13:52:59 -07:00
parent b04df81f81
commit d588913b7d

View File

@ -79,7 +79,8 @@ sub cmd_googlesearch {
if ($@) { if ($@) {
my $error = $@; my $error = $@;
$error =~ s/^WWW::Google::CustomSearch::search\(\): /google: /; $error =~ s/^WWW::Google::CustomSearch::search\(\): /google: /;
$error =~ s/file .*$//; $error =~ s/file .*?$//;
$error =~ s/Missing required arguments: totalResults.*/No results./;
return $error; return $error;
} }