Add oper:receive_immunity

This commit is contained in:
Ed Kellett 2019-08-03 03:11:00 +01:00
parent 458c853869
commit f510983eeb
No known key found for this signature in database
GPG key ID: CB9986DEF342FABC

View file

@ -58,7 +58,7 @@ hdl_can_kick(hook_data_channel_approval *data)
if(IsOper(source_p)) if(IsOper(source_p))
return; 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)", sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s attempted to kick %s from %s (which is +M)",
source_p->name, who->name, chptr->chname); source_p->name, who->name, chptr->chname);