Fix crash with 'crule', because it was being checked against Services bots

This commit is contained in:
Bram Matthys 2023-12-05 18:22:25 +01:00
parent 3428551e54
commit 54ad2d1586
No known key found for this signature in database
GPG key ID: BF8116B163EAAE98

View file

@ -351,7 +351,7 @@ static int crule_cap_set(crule_context *context, int numargs, void *crulearg[])
{
const char *capname = (char *)crulearg[0];
if (!context || !context->client)
if (!context || !context->client || !context->client->local)
return 0;
if (HasCapability(context->client, capname))