3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-01 17:16:39 +02: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 ($@) {
my $error = $@;
$error =~ s/^WWW::Google::CustomSearch::search\(\): /google: /;
$error =~ s/file .*$//;
$error =~ s/file .*?$//;
$error =~ s/Missing required arguments: totalResults.*/No results./;
return $error;
}