diff options
-rw-r--r-- | src/inspircd.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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]; |