3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

BanList: Remove repeated "ago"

This commit is contained in:
Pragmatic Software 2020-04-28 22:43:13 -07:00
parent f347d1798b
commit 54a938b54d

View File

@ -108,7 +108,7 @@ sub banlist_cmd {
if (defined $data->{timestamp}) {
my $date = strftime "%a %b %e %H:%M:%S %Y %Z", localtime $data->{timestamp};
my $ago = concise ago (time - $data->{timestamp});
$result .= "on $date ($ago ago) ";
$result .= "on $date ($ago) ";
}
$result .= "by $data->{owner} " if defined $data->{owner};
@ -563,7 +563,7 @@ sub checkban {
if (defined $data->{timestamp}) {
my $date = strftime "%a %b %e %H:%M:%S %Y %Z", localtime $data->{timestamp};
my $ago = concise ago (time - $data->{timestamp});
$result .= "on $date ($ago ago) ";
$result .= "on $date ($ago) ";
}
$result .= "by $data->{owner} " if defined $data->{owner};