const char *name;
struct Client *target_p;
int hop;
+ struct Capability *cap;
name = parv[1];
hop = atoi(parv[2]);
return 0;
}
+ /* check to ensure any "required" caps are set. --nenolod */
+ for (cap = captab; cap->name; cap++)
+ {
+ if (!cap->required)
+ continue;
+
+ if (!(client_p->localClient->caps & cap->cap))
+ {
+ char exitbuf[BUFSIZE];
+
+ rb_snprintf(exitbuf, BUFSIZE, "Missing required CAPAB [%s]", cap->name);
+ exit_client(client_p, client_p, client_p, exitbuf);
+
+ return 0;
+ }
+ }
+
/* Now we just have to call check_server and everything should be
* check for us... -A1kmm. */
switch (check_server(name, client_p))