Merge branch 'master' of github.com:pragma-/pbot

This commit is contained in:
Pragmatic Software 2018-01-05 19:39:01 -08:00
commit 297095856a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}