From fddd2d516c9d4cbc2f2ed607934b30bcd8c197ed Mon Sep 17 00:00:00 2001
From: Daniel Friesel <derf@finalrewind.org>
Date: Fri, 19 Jun 2015 15:15:47 +0200
Subject: [PATCH] efa: only print subtitle and subject when they're not the
 same

---
 bin/efa | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

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} ) {
-- 
GitLab