From f510983eeb3873a64d8bbc9599ba5c6c383f7db5 Mon Sep 17 00:00:00 2001 From: Ed Kellett Date: Sat, 3 Aug 2019 03:11:00 +0100 Subject: [PATCH] Add oper:receive_immunity --- extensions/chm_operpeace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/chm_operpeace.c b/extensions/chm_operpeace.c index 0d853b2b..f0d1afaa 100644 --- a/extensions/chm_operpeace.c +++ b/extensions/chm_operpeace.c @@ -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);