+static void
+hack_can_kick(void *vdata)
+{
+ hook_data_channel_approval *data = (hook_data_channel_approval *) vdata;
+ int alevel;
+
+ alevel = get_channel_access(data->client, data->chptr, data->msptr, data->dir, NULL);
+ if (alevel != CHFL_OVERRIDE)
+ return;
+
+ if (data->client->umodes & user_modes['p'])
+ {
+ 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);
+ }
+}
+