diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-06-25 11:44:08 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-06-25 11:44:08 +0200 |
commit | b32bf2d4beda9925f7ffec3d4fbe7cf0352ab997 (patch) | |
tree | fe10d054e4ca64b287eb739297afb9426b871257 /bin/efa | |
parent | 5fc7f99bf99c5a90cc201abf0b91671c89b7d4d3 (diff) |
Move messages to Travel::Routing::DE::EFA::Route::Message objects
Diffstat (limited to 'bin/efa')
-rwxr-xr-x | bin/efa | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -145,18 +145,19 @@ sub display_connection { $c->delay, $c->departure_stime, $c->arrival_stime ); } - for my $extra ( $c->regular_notes ) { - if ( not( length $ignore_info and $extra =~ /$ignore_info/i ) ) { - say "# $extra"; + for my $note ( $c->regular_notes ) { + my $text = $note->summary; + if ( not( length $ignore_info and $text =~ /$ignore_info/i ) ) { + say "# $text"; } } for my $notice ( $c->current_notes ) { - if ( $notice->{subtitle} ne $notice->{subject} ) { - 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} ); + printf( "# %s\n", $notice->subtitle ); } } |