summaryrefslogtreecommitdiff
path: root/bin/hafas-m
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-06-14 20:28:29 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-06-14 20:28:43 +0200
commit0e530dc3f55c5c7ed1cbb3e7d72af208922b7f03 (patch)
tree19b423269f5de1858c41648358d81d3a4254f13f /bin/hafas-m
parent3438d97ba24a48ca1b107129dcf99456e9f4ca95 (diff)
hafas-m: fix message display for non-repeated messages
Diffstat (limited to 'bin/hafas-m')
-rwxr-xr-xbin/hafas-m5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/hafas-m b/bin/hafas-m
index 7b2491b..c40f0ab 100755
--- a/bin/hafas-m
+++ b/bin/hafas-m
@@ -154,7 +154,10 @@ sub display_result {
print "\n";
$first_message = 0;
}
- printf( "# %s\n", $msg );
+ printf( "# %s\n", $msg->{header} );
+ if ( $msg->{lead} ) {
+ printf( "# %s\n", $msg->{lead} );
+ }
}
}