]> jfr.im git - solanum.git/blobdiff - extensions/chm_operpeace.c
Remove Windows support
[solanum.git] / 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);