diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-06-19 15:15:47 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-06-19 15:15:47 +0200 |
commit | fddd2d516c9d4cbc2f2ed607934b30bcd8c197ed (patch) | |
tree | b0e6838df983e22733f43913e3b207856607a72a /bin | |
parent | 920477d9a0a0b5d5178208fe3da342e5b925640f (diff) |
efa: only print subtitle and subject when they're not the same
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/efa | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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} ) { |