diff --git a/post.php b/post.php index 997201b0..daaffcf6 100644 --- a/post.php +++ b/post.php @@ -932,6 +932,13 @@ function handle_post() // Check if banned checkBan($board['uri']); + if ($config['op_require_history'] && $post['op']) { + $has_any = has_any_history($_SERVER['REMOTE_ADDR']); + if (!$has_any) { + error($config['error']['opnohistory']); + } + } + if ($post['mod'] = isset($_POST['mod']) && $_POST['mod']) { check_login(false); if (!$mod) {