Skip to content

Commit

Permalink
Changed output a little.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 22, 2009
1 parent 9e581fc commit 77b5d9b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions last_chats.pl
Expand Up @@ -187,10 +187,14 @@ sub signal_catcher {
# replace "/me does something" with "*does something*" ...
$body =~ s#\A/me (.*)\Z#*$1*#;

my $speaker = $dir ? $thisxmppuseralias : $alias;
my $speaker = $dir ? $xmppuserfullalias : $fullalias;
my ($d, $t) = split_date_time(make_timestamp($utc, 'UTC'));

print "\n$speaker ($d):\n" if ($lastspeaker ne $speaker);
if ($d ne $lastdate) {
print "\n$d\n";
$lastspeaker = '';
}
print "\n$speaker:\n" if ($lastspeaker ne $speaker);
print "$t $body\n";

$lastdate = $d;
Expand Down

0 comments on commit 77b5d9b

Please sign in to comment.