3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-05 10:58:44 +02:00

Use concise duration for recall timestamp

This commit is contained in:
Pragmatic Software 2017-08-04 21:05:55 -07:00
parent 381b4bee4b
commit b66bac2359

View File

@ -390,7 +390,7 @@ sub recall_message {
}
my $text = $msg->{msg};
my $ago = ago(gettimeofday - $msg->{timestamp});
my $ago = concise ago(gettimeofday - $msg->{timestamp});
if($text =~ s/^\/me\s+// or $text =~ m/^KICKED /) {
$recall_text .= "[$ago] * $msg->{nick} $text\n";