From 6bd132d3ff96b0677f9e09981472f8a2124ff837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B8nstantine=20Kovalensky?= <45331093+kovalensky@users.noreply.github.com> Date: Thu, 30 Nov 2023 09:56:03 +0400 Subject: [PATCH] Code re-formatting (#1176) --- bt/announce.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bt/announce.php b/bt/announce.php index c40e72bf4..101e5cd02 100644 --- a/bt/announce.php +++ b/bt/announce.php @@ -67,9 +67,9 @@ if (strlen($peer_id) !== 20) { // Check for client ban if ($bb_cfg['client_ban']['enabled']) { - foreach (array_keys($bb_cfg['client_ban']['clients']) as $client) { - if (str_starts_with($peer_id, $client)) { - msg_die($bb_cfg['client_ban']['clients'][$client]); + foreach ($bb_cfg['client_ban']['clients'] as $clientId => $reason) { + if (str_starts_with($peer_id, $clientId)) { + msg_die($reason); } } }