From b32bf2d4beda9925f7ffec3d4fbe7cf0352ab997 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 25 Jun 2015 11:44:08 +0200 Subject: Move messages to Travel::Routing::DE::EFA::Route::Message objects --- bin/efa | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/efa b/bin/efa index a5b5403..b8d152c 100755 --- a/bin/efa +++ b/bin/efa @@ -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 ); } } -- cgit v1.2.3