summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-06-19 15:15:47 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-06-19 15:15:47 +0200
commitfddd2d516c9d4cbc2f2ed607934b30bcd8c197ed (patch)
treeb0e6838df983e22733f43913e3b207856607a72a
parent920477d9a0a0b5d5178208fe3da342e5b925640f (diff)
efa: only print subtitle and subject when they're not the same
-rwxr-xr-xbin/efa7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/efa b/bin/efa
index df945d6..d28f32c 100755
--- a/bin/efa
+++ b/bin/efa
@@ -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} ) {