From 2387723d004a00a82ced89e40d422ec56df54117 Mon Sep 17 00:00:00 2001
From: Daniel Friesel <derf@finalrewind.org>
Date: Fri, 5 Oct 2012 18:47:53 +0200
Subject: filter out '+0' messages

---
 cgi/index.pl | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/cgi/index.pl b/cgi/index.pl
index 71c3def..1318043 100644
--- a/cgi/index.pl
+++ b/cgi/index.pl
@@ -79,6 +79,11 @@ sub handle_request {
 		if ( @platforms and not grep { $_ eq $platform } @platforms ) {
 			next;
 		}
+		my $info = $result->info;
+
+		if ($info eq '+0') {
+			$info = undef;
+		}
 		push(
 			@departures,
 			{
@@ -87,7 +92,7 @@ sub handle_request {
 				via         => [ $result->route_interesting(3) ],
 				destination => $result->destination,
 				platform    => $platform,
-				info        => $result->info,
+				info        => $info,
 			}
 		);
 	}
-- 
cgit v1.2.3