mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 11:12:42 +01:00
Plugins/GoogleSearch: handle no results case
This commit is contained in:
parent
b04df81f81
commit
d588913b7d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user