3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-20 02:49:49 +01: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}) { if (defined $data->{timestamp}) {
my $date = strftime "%a %b %e %H:%M:%S %Y %Z", localtime $data->{timestamp}; my $date = strftime "%a %b %e %H:%M:%S %Y %Z", localtime $data->{timestamp};
my $ago = concise ago (time - $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}; $result .= "by $data->{owner} " if defined $data->{owner};
@ -563,7 +563,7 @@ sub checkban {
if (defined $data->{timestamp}) { if (defined $data->{timestamp}) {
my $date = strftime "%a %b %e %H:%M:%S %Y %Z", localtime $data->{timestamp}; my $date = strftime "%a %b %e %H:%M:%S %Y %Z", localtime $data->{timestamp};
my $ago = concise ago (time - $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}; $result .= "by $data->{owner} " if defined $data->{owner};