Don't attempt to get auth string for unauthorized clients

This commit is contained in:
Rain 2023-10-15 21:29:51 +03:00
parent 67f5fcdb25
commit 9b06d85771
No known key found for this signature in database
GPG Key ID: 83230CA2EA4B534E

View File

@ -399,6 +399,11 @@ int AddTargetsToMenuByAuthId(Menu menu, int source_client, int flags, AuthIdType
continue; continue;
} }
if (!IsClientAuthorized(i))
{
continue;
}
if (((flags & COMMAND_FILTER_NO_BOTS) == COMMAND_FILTER_NO_BOTS) if (((flags & COMMAND_FILTER_NO_BOTS) == COMMAND_FILTER_NO_BOTS)
&& IsFakeClient(i)) && IsFakeClient(i))
{ {