diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-06-14 20:28:29 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-06-14 20:28:43 +0200 |
commit | 0e530dc3f55c5c7ed1cbb3e7d72af208922b7f03 (patch) | |
tree | 19b423269f5de1858c41648358d81d3a4254f13f /bin/hafas-m | |
parent | 3438d97ba24a48ca1b107129dcf99456e9f4ca95 (diff) |
hafas-m: fix message display for non-repeated messages
Diffstat (limited to 'bin/hafas-m')
-rwxr-xr-x | bin/hafas-m | 5 |
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} ); + } } } |