Browse Source

fallback to entire query when quotewords fails

Byron Jones 6 years ago
parent
commit
1f13c1596a
1 changed files with 5 additions and 0 deletions
  1. 5 0
      logbot-util

+ 5 - 0
logbot-util

@@ -90,6 +90,11 @@ if ($command eq 'backup') {
                 push @parts,  $condition;
                 push @values, $value;
             }
+            if (!@parts) {
+                my ($condition, $value) = like_value(text => $word);
+                push @parts,  $condition;
+                push @values, $value;
+            }
             push @where, join(' AND ', @parts);
         }
         if ($nick) {