From f7713d32f73b49daa1b68ff9500dce8b6e259c21 Mon Sep 17 00:00:00 2001
From: Alexandre Morignot <erdnaxeli@cervoi.se>
Date: Sat, 25 Apr 2020 18:07:44 +0200
Subject: [PATCH] Fix get calls

---
 PlayBot/commands/get.pm       | 5 +++--
 PlayBot/sessions/irc/later.pm | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/PlayBot/commands/get.pm b/PlayBot/commands/get.pm
index 568610b..42ea1c4 100644
--- a/PlayBot/commands/get.pm
+++ b/PlayBot/commands/get.pm
@@ -49,8 +49,9 @@ sub exec {
             if (not $query->is_global) {
                 # we check is there is result with global
                 my $q = PlayBot::commands::get::query->new(
-                    chan => $query->chan,
-                    query  => $query->query . ' -a'
+                    chan    => $query->chan,
+                    query   => $query->query . ' -a'
+                    fts     => $fts,
                 );
 
                 my $rows = $db_query->get_rows($q);
diff --git a/PlayBot/sessions/irc/later.pm b/PlayBot/sessions/irc/later.pm
index 474ebf7..7433eff 100644
--- a/PlayBot/sessions/irc/later.pm
+++ b/PlayBot/sessions/irc/later.pm
@@ -10,7 +10,7 @@ sub consume
 {
 	my ($nick, $id, $chan_src) = @_;
 
-    my @args = ($nick, $id, $chan_src);
+    my @args = (0, $nick, $id, $chan_src);
     PlayBot::commands::get::exec(@args);
 }
 
-- 
GitLab