mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Add options for spam count and interval
This commit is contained in:
parent
aef7f01ed9
commit
68c0ce3ae6
5 changed files with 60 additions and 31 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue