From 9b06d85771c2245ac7f0817fc40d48efe6e2e488 Mon Sep 17 00:00:00 2001 From: Rain Date: Sun, 15 Oct 2023 21:29:51 +0300 Subject: [PATCH] Don't attempt to get auth string for unauthorized clients --- plugins/basebans/ban.sp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/basebans/ban.sp b/plugins/basebans/ban.sp index 9afa7efcb..61109f975 100644 --- a/plugins/basebans/ban.sp +++ b/plugins/basebans/ban.sp @@ -399,6 +399,11 @@ int AddTargetsToMenuByAuthId(Menu menu, int source_client, int flags, AuthIdType continue; } + if (!IsClientAuthorized(i)) + { + continue; + } + if (((flags & COMMAND_FILTER_NO_BOTS) == COMMAND_FILTER_NO_BOTS) && IsFakeClient(i)) {