Skip to content

Commit

Permalink
efa: only print subtitle and subject when they're not the same
Browse files Browse the repository at this point in the history
  • Loading branch information
derf committed Jun 19, 2015
1 parent 920477d commit fddd2d5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/efa
Expand Up @@ -152,7 +152,12 @@ sub display_connection {
}

for my $notice ( $c->current_info ) {
printf( "# %s - %s\n", $notice->{subtitle}, $notice->{subject} );
if ( $notice->{subtitle} ne $notice->{subject} ) {
printf( "# %s - %s\n", $notice->{subtitle}, $notice->{subject} );
}
else {
printf( "# %s\n", $notice->{subtitle} );
}
}

if ( $opt->{maps} ) {
Expand Down

0 comments on commit fddd2d5

Please sign in to comment.