mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 20:42:38 +01:00
Use concise duration for recall timestamp
This commit is contained in:
parent
381b4bee4b
commit
b66bac2359
@ -390,7 +390,7 @@ sub recall_message {
|
|||||||
}
|
}
|
||||||
|
|
||||||
my $text = $msg->{msg};
|
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 /) {
|
if($text =~ s/^\/me\s+// or $text =~ m/^KICKED /) {
|
||||||
$recall_text .= "[$ago] * $msg->{nick} $text\n";
|
$recall_text .= "[$ago] * $msg->{nick} $text\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user