| @@ 68-72 (lines=5) @@ | ||
| 65 | $lastChecked = getPermCache('killmailCheck'); |
|
| 66 | if ($lastChecked <= time()) { |
|
| 67 | //check if user is still using the old config |
|
| 68 | if (null === $this->groupConfig) { |
|
| 69 | $this->logger->addError('Killmails: UPDATE YOUR CONFIG TO RECEIVE KILLMAILS'); |
|
| 70 | setPermCache('killmailCheck', time() + 600); |
|
| 71 | return null; |
|
| 72 | } |
|
| 73 | $this->logger->addInfo('Killmails: Checking for new killmails.'); |
|
| 74 | $this->getKM(); |
|
| 75 | setPermCache('killmailCheck', time() + 60); |
|
| @@ 68-72 (lines=5) @@ | ||
| 65 | $lastChecked = getPermCache('killmailCheck'); |
|
| 66 | if ($lastChecked <= time()) { |
|
| 67 | //check if user is still using the old config |
|
| 68 | if (null === $this->groupConfig) { |
|
| 69 | $this->logger->addError('Killmails: UPDATE YOUR CONFIG TO RECEIVE KILLMAILS'); |
|
| 70 | setPermCache('killmailCheck', time() + 600); |
|
| 71 | return null; |
|
| 72 | } |
|
| 73 | $this->logger->addInfo('Killmails: Checking for new killmails.'); |
|
| 74 | $this->getKM(); |
|
| 75 | setPermCache('killmailCheck', time() + 600); |
|