- if (data->target->umodes & user_modes['p'])
- {
- if (data->client->umodes & user_modes['p'])
- {
- /* Using oper-override to kick an oper
- * who's also using oper-override, better
- * report what happened.
- */
- update_session_deadline(data->client, NULL);
- sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s is using oper-override on %s (KICK %s)",
- get_oper_name(data->client), data->chptr->chname, data->target->name);
- }
- else
- {
- /* Like cmode +M, let's report any attempt
- * to kick the immune oper.
- */
- update_session_deadline(data->target, NULL);
- sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s attempted to kick %s from %s (who is +p)",
- data->client->name, data->target->name, data->chptr->chname);
- sendto_one_numeric(data->client, ERR_ISCHANSERVICE, "%s %s :Cannot kick immune IRC operators.",
- data->target->name, data->chptr->chname);
- data->approved = 0;
- }
- return;
- }
-