Skip to content
Extraits de code Groupes Projets
Valider eb27ac30 rédigé par Alexandre Morignot's avatar Alexandre Morignot
Parcourir les fichiers

extend !get -1 to !get -X

parent 6f09de12
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -13,7 +13,7 @@ sub exec { ...@@ -13,7 +13,7 @@ sub exec {
$time = 6 if (!$time); $time = 6 if (!$time);
$time *= ($unit eq 's') ? 1 : ($unit eq 'm') ? 60 : 3600; $time *= ($unit eq 's') ? 1 : ($unit eq 'm') ? 60 : 3600;
if ($offset == -1) { while ($offset <= 0) {
my $sth = $dbh->prepare_cached(' my $sth = $dbh->prepare_cached('
SELECT content SELECT content
FROM playbot_chan FROM playbot_chan
...@@ -37,6 +37,7 @@ sub exec { ...@@ -37,6 +37,7 @@ sub exec {
my $content = $sth->fetch; my $content = $sth->fetch;
return unless ($content); return unless ($content);
$id = $content->[0]; $id = $content->[0];
$offset++;
} }
my $sth = $dbh->prepare_cached('INSERT INTO playbot_later (content, nick, date) VALUES (?, ?, ?)'); my $sth = $dbh->prepare_cached('INSERT INTO playbot_later (content, nick, date) VALUES (?, ?, ?)');
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter