From 2b111ca6c8f77ef73d2d3e9fe7d8d1316baf30d3 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Thu, 30 Sep 2010 18:21:54 -0500 Subject: [PATCH] no news when there is no inhabitants --- lib/Lacuna/DB/Result/Ships/Scanner.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Lacuna/DB/Result/Ships/Scanner.pm b/lib/Lacuna/DB/Result/Ships/Scanner.pm index d5efaa98..bbcebd8f 100644 --- a/lib/Lacuna/DB/Result/Ships/Scanner.pm +++ b/lib/Lacuna/DB/Result/Ships/Scanner.pm @@ -51,8 +51,8 @@ sub arrive { filename => 'we_were_scanned.txt', params => [$body_attacked->name, $self->body->empire_id, $self->body->empire->name], ); + $body_attacked->add_news(65, sprintf('Several people reported seeing a UFO in the %s sky today.', $body_attacked->name)); } - $body_attacked->add_news(65, sprintf('Several people reported seeing a UFO in the %s sky today.', $body_attacked->name)); $self->delete; } } -- 2.51.2