From e5af9e08dc6ae2fc3527514ab98f584ade786555 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 14 Apr 2004 17:31:16 +0000 Subject: fixes to server name updating during incoming link git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@572 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/inspircd.cpp b/src/inspircd.cpp index f412a84d5..8a30a21c3 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -6705,6 +6705,14 @@ void handle_link_packet(char* udp_msg, char* udp_host, serverrec *serv) char* serverdesc = finalparam+2; WriteOpers("CONNECT from %s (%s)",servername,udp_host); + for (int j = 0; j < serv->connectors.size(); j++) + { + if (!strcasecmp(serv->connectors[j].GetServerName().c_str(),udp_host)) + { + serv->connectors[j].SetServerName(servername); + } + } + char Link_ServerName[1024]; char Link_IPAddr[1024]; -- cgit v1.2.3