Skip to content

Commit

Permalink
Apaga trecho de codigo não ultilizado ref: #2
Browse files Browse the repository at this point in the history
  • Loading branch information
LimaSystem committed Oct 8, 2024
1 parent b18bd6f commit 7783360
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ public function _init()
$eligible_spam = $last_spam_sent ?? $this->spam_sent_email;

$is_spam_eligible = !$eligible_spam || ($current_timestamp - $eligible_spam->getTimestamp()) >= 86400;
$is_spam_status_valid = !$this->spam_status;

if ($spam_terms && $is_spam_eligible && !$this->spam_status) {
$ip = $_SERVER['HTTP_X_REAL_IP'] ?? $_SERVER['HTTP_X_FORWARDED_FOR'] ?? $_SERVER['REMOTE_ADDR'] ?? '';
Expand Down

0 comments on commit 7783360

Please sign in to comment.