mirror of
https://github.com/pissnet/pissircd.git
synced 2025-08-16 07:01:35 +01:00
Fix crash with 'crule', because it was being checked against Services bots
This commit is contained in:
parent
3428551e54
commit
54ad2d1586
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue