From b9fae4dbcca4e36970f2ad1c003ed99d872955b1 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sun, 14 Nov 2010 23:21:45 -0600 Subject: [PATCH] reversed order --- lib/Lacuna/RPC/Inbox.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Lacuna/RPC/Inbox.pm b/lib/Lacuna/RPC/Inbox.pm index b7114ff6..112d399d 100644 --- a/lib/Lacuna/RPC/Inbox.pm +++ b/lib/Lacuna/RPC/Inbox.pm @@ -122,7 +122,7 @@ sub send_message { } } } - my $max_messages = 100 + (($empire->date_created->epoch - time)/3600) + ( $empire->alliance_id ? 50 : 0 ); + my $max_messages = 100 + int((time - $empire->date_created->epoch)/3600) + ( $empire->alliance_id ? 50 : 0 ); if ($send_count > $max_messages) { confess [1010, "You have already sent the maximum number (".$max_messages.") of messages you can send for one day."]; } -- 2.51.2