summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-06-25 11:44:08 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-06-25 11:44:08 +0200
commitb32bf2d4beda9925f7ffec3d4fbe7cf0352ab997 (patch)
treefe10d054e4ca64b287eb739297afb9426b871257 /bin
parent5fc7f99bf99c5a90cc201abf0b91671c89b7d4d3 (diff)
Move messages to Travel::Routing::DE::EFA::Route::Message objects
Diffstat (limited to 'bin')
-rwxr-xr-xbin/efa13
1 files changed, 7 insertions, 6 deletions
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 );
}
}