diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-14 17:31:16 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-14 17:31:16 +0000 |
commit | e5af9e08dc6ae2fc3527514ab98f584ade786555 (patch) | |
tree | 9ae91d406f422bd1d906eb8d68bebdac146196bd /src | |
parent | fff67181b421bf12981dd1c583eda8bbfa53c5cb (diff) |
fixes to server name updating during incoming link
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@572 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-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]; |