diff --git a/lib/Lacuna/DB/Result/Empire.pm b/lib/Lacuna/DB/Result/Empire.pm index 4247f17f..7fd88bf1 100644 --- a/lib/Lacuna/DB/Result/Empire.pm +++ b/lib/Lacuna/DB/Result/Empire.pm @@ -593,7 +593,7 @@ sub send_message { attachments => $params{attachments}, })->insert; if (exists $params{repeat_check}) { - Lacuna->cache->set($params{repeat_check}, int((DateTime->now->hour + 1) / 6), 1, 60 * 60 * 6); + Lacuna->cache->set($params{repeat_check}, int(DateTime->now->hour / 6), 1, 60 * 60 * 6); } if (exists $params{in_reply_to} && defined $params{in_reply_to} && $params{in_reply_to} ne '') { my $original = Lacuna->db->resultset('Lacuna::DB::Result::Message')->find($params{in_reply_to}); @@ -606,7 +606,7 @@ sub send_message { sub check_for_repeat_message { my ($self, $repeat) = @_; - return Lacuna->cache->get($repeat, int((DateTime->now->hour + 1) / 6)); + return Lacuna->cache->get($repeat, int(DateTime->now->hour / 6)); } sub send_predefined_message { diff --git a/var/www/public/changes.txt b/var/www/public/changes.txt index 4d054ca2..8ae8686f 100644 --- a/var/www/public/changes.txt +++ b/var/www/public/changes.txt @@ -8,6 +8,7 @@ - Fix: Partial repairs on buildings, dependent upon resources, is now possible - Fix: Damaged Space Ports no longer count towards the max ships a colony can support - Fix: Damaged Shipyards no longer count towards the max ships a colony can build + - Fix: Instant spy travel has now been fixed. Spies sent to a colony should only become operational after the ship arrives. 3.0814 - Fix: creating a munitions lab does not break isolation status