From a7da62250a42c43e51d4027c5fa913a2591029c1 Mon Sep 17 00:00:00 2001 From: Gregory Bartholomew Date: Dec 29 2021 00:18:14 +0000 Subject: Fix card comments command output --- diff --git a/bot/commands/pagure.pm b/bot/commands/pagure.pm index 12ac831..a18a4ba 100644 --- a/bot/commands/pagure.pm +++ b/bot/commands/pagure.pm @@ -134,7 +134,7 @@ sub card { } @{ $crd->{'comments'} } ; - $#lst = $lst if $lst >= 0; + $#lst = $lst if $#lst > $lst >= 0; push @ret, $sep . join($sep, reverse @lst) . $sep; } else {