hourly thread limit. Mostly from NPFchan
This commit is contained in:
parent
7f8d7ea572
commit
5988246bf1
|
@ -418,6 +418,15 @@
|
||||||
'message' => &$config['error']['flood']
|
'message' => &$config['error']['flood']
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//max threads per hour
|
||||||
|
$config['filters'][] = array(
|
||||||
|
'condition' => array(
|
||||||
|
'custom' => 'check_thread_limit'
|
||||||
|
),
|
||||||
|
'action' => 'reject',
|
||||||
|
'message' => &$config['error']['too_many_threads']
|
||||||
|
);
|
||||||
|
|
||||||
// Example: Minimum time between posts with the same file hash.
|
// Example: Minimum time between posts with the same file hash.
|
||||||
// $config['filters'][] = array(
|
// $config['filters'][] = array(
|
||||||
// 'condition' => array(
|
// 'condition' => array(
|
||||||
|
@ -517,6 +526,8 @@
|
||||||
// Requires $config['strip_combining_chars'] = true;
|
// Requires $config['strip_combining_chars'] = true;
|
||||||
$config['max_combining_chars'] = 3;
|
$config['max_combining_chars'] = 3;
|
||||||
|
|
||||||
|
// Maximum numbers of threads that can be created every hour on a board.
|
||||||
|
$config['max_threads_per_hour'] = 30;
|
||||||
// Maximum post body length.
|
// Maximum post body length.
|
||||||
$config['max_body'] = 6000;
|
$config['max_body'] = 6000;
|
||||||
// Minimum post body length.
|
// Minimum post body length.
|
||||||
|
@ -1276,6 +1287,7 @@
|
||||||
$config['error']['image_hard_limit'] = _('Thread has reached its maximum image limit.');
|
$config['error']['image_hard_limit'] = _('Thread has reached its maximum image limit.');
|
||||||
$config['error']['nopost'] = _('You didn\'t make a post.');
|
$config['error']['nopost'] = _('You didn\'t make a post.');
|
||||||
$config['error']['flood'] = _('Flood detected; Post discarded.');
|
$config['error']['flood'] = _('Flood detected; Post discarded.');
|
||||||
|
$config['error']['too_many_threads'] = _('The hourly thread limit has been reached. Please post in an existing thread.');
|
||||||
$config['error']['spam'] = _('Your request looks automated; Post discarded.');
|
$config['error']['spam'] = _('Your request looks automated; Post discarded.');
|
||||||
$config['error']['unoriginal'] = _('Unoriginal content!');
|
$config['error']['unoriginal'] = _('Unoriginal content!');
|
||||||
$config['error']['muted'] = _('Unoriginal content! You have been muted for %d seconds.');
|
$config['error']['muted'] = _('Unoriginal content! You have been muted for %d seconds.');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user