mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-25 12:12:34 +01:00
Merge branch 'master' of github.com:pragma-/pbot
This commit is contained in:
commit
297095856a
@ -54,7 +54,7 @@ if ($arguments =~ m/(.*)\svs\s(.*)/i) {
|
||||
|
||||
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";
|
||||
exit;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user