From cac6da9245fe610828aeeaaeab71058ab483d768 Mon Sep 17 00:00:00 2001
From: Alexandre Morignot <erdnaxeli@cervoi.se>
Date: Sat, 18 Apr 2020 16:04:08 +0200
Subject: [PATCH] Always force the get with !fts

---
 PlayBot/commands/get/query.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PlayBot/commands/get/query.pm b/PlayBot/commands/get/query.pm
index 55458ee..4bec96a 100644
--- a/PlayBot/commands/get/query.pm
+++ b/PlayBot/commands/get/query.pm
@@ -88,7 +88,7 @@ sub _build_is_global {
 sub _build_force {
     my $self = shift;
 
-    if ($self->chan !~ /^#/ || $self->query =~ /(^|\s)-f($|\s)/) {
+    if ($self->fts || $self->chan !~ /^#/ || $self->query =~ /(^|\s)-f($|\s)/) {
         return 1;
     } else {
         return 0;
-- 
GitLab