summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-11-28 21:35:42 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2023-11-28 21:35:42 +0100
commit2d48e0fe2f6308d62de9f3904d495bc4fa894a90 (patch)
tree3b59bab5bb35ab37ec103221287aa4c63774272f /bin
parent45ac5062d9647698ca50310d2b43e81126d0fc95 (diff)
hafas-m: do not show messages that are irrelevant for --via filter
Diffstat (limited to 'bin')
-rwxr-xr-xbin/hafas-m3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/hafas-m b/bin/hafas-m
index 602f639..f4212dd 100755
--- a/bin/hafas-m
+++ b/bin/hafas-m
@@ -482,6 +482,7 @@ for my $d (@results) {
for my $message ( $d->messages ) {
if ( $message->ref_count > 0 ) {
+ $message->{show} = 1;
$info_line = sprintf( '(%d) %s', $message->{id}, $info_line );
}
}
@@ -523,7 +524,7 @@ for my $d (@results) {
display_result(@output);
for my $m ( $status->messages ) {
- if ( $m->ref_count > 0 ) {
+ if ( $m->ref_count > 0 and $m->{show} ) {
if ( $m->short ) {
printf( "\n# (%d) %s\n# %s\n", $m->{id}, $m->short, $m->text );
}