diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 404fdbf6..f57419ba 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -1809,11 +1809,10 @@ function mod_ban_post(string $board, $delete, $post_num, $token = false) { } $will_ban = true; - $will_delete = true; + $will_delete = isset($_POST['delete']) && (int) $_POST['delete']; $will_spamnoticer = isset($_POST['spamnoticer']); require_once 'inc/spamnoticer.php'; - require_once 'inc/anti-bot.php'; if ($will_spamnoticer) { $spamnoticer_info = parse_spamnoticer_content_fields($_POST, $po); @@ -1837,8 +1836,6 @@ function mod_ban_post(string $board, $delete, $post_num, $token = false) { $_POST['length'], $_POST['board']); - $will_delete = $will_delete && isset($_POST['delete']) && (int) $_POST['delete']; - $has_public_message = isset($_POST['public_message'], $_POST['message']); if ($will_ban) {