From 44bdbb3cef5ffff80e5db432eb154083c218f06f Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 14 Apr 2004 19:57:53 +0000 Subject: Authentication fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@584 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index ab24d5ed8..5497c54e0 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -6842,8 +6842,10 @@ void handle_link_packet(char* udp_msg, char* udp_host, serverrec *serv) { for (int x = 0; x < servers[j]->connectors.size(); x++) { - if (servers[j]->connectors[x].GetServerName() == std::string(udp_host)) + log("Servers are: '%s' '%s'",udp_host,servers[j]->connectors[x].GetServerName().c_str()); + if (!strcasecmp(servers[j]->connectors[x].GetServerName().c_str(),udp_host)) { + log("match! process restricted stuff here"); // found a valid ircd_connector. // TODO: Fix this so it only lets servers in that are in the // STATE_CONNECTED state!!! -- cgit v1.2.3