]> jfr.im git - irc/freenode/ircd-seven.git/commitdiff
Add oper:receive_immunity
authorEd Kellett <redacted>
Sat, 3 Aug 2019 02:11:00 +0000 (03:11 +0100)
committerEd Kellett <redacted>
Tue, 4 Aug 2020 21:58:30 +0000 (22:58 +0100)
extensions/chm_operpeace.c

index 0d853b2b0d88a12a1bd29907a5e78777fd06ce75..f0d1afaacc7674314f556271b77246d2609d89f7 100644 (file)
@@ -58,7 +58,7 @@ hdl_can_kick(hook_data_channel_approval *data)
        if(IsOper(source_p))
                return;
 
-       if((chptr->mode.mode & mymode) && IsOper(who))
+       if((chptr->mode.mode & mymode) && HasPrivilege(who, "oper:receive_immunity"))
        {
                sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s attempted to kick %s from %s (which is +M)",
                        source_p->name, who->name, chptr->chname);