Add options for spam count and interval

This commit is contained in:
Kijin Sung 2016-12-13 22:59:02 +09:00
parent aef7f01ed9
commit 68c0ce3ae6
5 changed files with 60 additions and 31 deletions

View file

@ -103,8 +103,8 @@ class spamfilterModel extends spamfilter
$config = $this->getConfig();
if($config->limits != 'Y') return new Object();
$limit_count = '3';
$interval = '10';
$limit_count = $config->limits_count ?: 3;
$interval = $config->limits_interval ?: 10;
$count = $this->getLogCount($interval);