1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-25 16:00:22 +01:00

Allow admins to bypass flood filters

This commit is contained in:
Savetheinternet 2011-02-17 17:07:22 +11:00
parent a4841386ce
commit 1af85e650e
2 changed files with 3 additions and 1 deletions

View File

@ -250,6 +250,8 @@
$config['mod']['postinlocked'] = MOD;
// Post bypass unoriginal content check
$config['mod']['postunoriginal'] = ADMIN;
// Bypass flood check
$config['mod']['flood'] = ADMIN;
// Raw HTML posting
$config['mod']['rawhtml'] = MOD;

View File

@ -228,7 +228,7 @@
markup($post['body']);
// Check for a flood
if(checkFlood($post)) {
if(!($mod && $mod['type'] >= $config['mod']['flood']) && checkFlood($post)) {
error($config['error']['flood']);
}