Add an additional check to mr_server() for TS6, in case we don't get an SVINFO

from ircd-ratbox (anfl)
This commit is contained in:
Jilles Tjoelker 2008-06-13 23:09:52 +02:00
parent 0a70e15066
commit f037fff482
1 changed files with 9 additions and 0 deletions

View File

@ -184,6 +184,15 @@ mr_server(struct Client *client_p, struct Client *source_p, int parc, const char
return 0;
}
/* require TS6 for direct links */
if(!IsCapable(client_p, CAP_TS6))
{
sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) ? L_NETWIDE : L_ALL,
"Link %s dropped, TS6 protocol is required", name);
exit_client(client_p, client_p, client_p, "Incompatible TS version");
return 0;
}
if((target_p = find_server(NULL, name)))
{
/*