Code re-formatting (#1176)

This commit is contained in:
Cønstantine Kovalensky 2023-11-30 09:56:03 +04:00 committed by GitHub
commit 6bd132d3ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}
}