+ /* check to ensure any "required" caps are set. --nenolod */
+ /* XXX: show required CAPABs. */
+ required_mask = capability_index_get_required(serv_capindex);
+ if (!IsCapable(client_p, required_mask))
+ {
+ sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) ? L_NETWIDE : L_ALL,
+ "Link %s dropped, required CAPABs are missing", name);
+ ilog(L_SERVER, "Link %s%s dropped, required CAPABs are missing",
+ EmptyString(client_p->name) ? name : "",
+ log_client_name(client_p, SHOW_IP));
+ exit_client(client_p, client_p, client_p, "Missing required CAPABs");
+
+ return 0;
+ }
+