3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

g.pl now tells you when it gets an empty response (#16)

This commit is contained in:
Krokodile Glue 2018-01-05 19:41:01 -08:00 committed by Pragmatic Software
parent 8c92ace849
commit e3e9dea9f1

View File

@ -54,7 +54,7 @@ if ($arguments =~ m/(.*)\svs\s(.*)/i) {
my $result = $engine->search($arguments); my $result = $engine->search($arguments);
if (not @{$result->items}) { if (not defined $result or not defined $result->items or not @{$result->items}) {
print "No results found\n"; print "No results found\n";
exit; exit;
} }