From 316cbf11bc570340a4c2aa153ca75e31ea07c98c Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Fri, 13 Jun 2008 23:09:52 +0200 Subject: [PATCH] Add an additional check to mr_server() for TS6, in case we don't get an SVINFO from ircd-ratbox (anfl) --- modules/core/m_server.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/core/m_server.c b/modules/core/m_server.c index 129d4664..e79d5ee1 100644 --- a/modules/core/m_server.c +++ b/modules/core/m_server.c @@ -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))) { /*