diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-03-27 20:38:11 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-03-27 20:38:11 +1100 |
| commit | 7c2938b542cfdc91b93cf549efe50804c7d1c181 (patch) | |
| tree | 4794f1c9bcfb9b0dbf88860ad6f3c29e80ddd30f /post.php | |
| parent | b08751f56288addc70c2e7c3af537664ad3aa7ab (diff) | |
Fixed a small bug on the flood filter
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -303,6 +303,7 @@ // Custom anti-spam filters if(isset($config['flood_filters'])) { foreach($config['flood_filters'] as &$filter) { + unset($did_not_match); // Set up default stuff if(!isset($filter['action'])) $filter['action'] = 'reject'; @@ -333,7 +334,7 @@ } } elseif($condition == 'OP') { // Am I OP? - if($OP) + if($value == $OP) continue; } else { // Unknown block @@ -343,11 +344,11 @@ $did_not_match = true; break; } - if(!isset($did_not_match)) { - // Matched filter! - if($filter['action'] == 'reject') { - error($filter['message']); - } + } + if(!isset($did_not_match)) { + // Matched filter! + if($filter['action'] == 'reject') { + error($filter['message']); } } } |
