serverrec* source_server = NULL;
+ log(DEBUG,"Begin checking");
+
for (int j = 0; j < 255; j++)
{
+ log(DEBUG,"Loop %d",j);
if (servers[j] != NULL)
{
+ log(DEBUG,"Server %d not null",j);
for (int x = 0; x < servers[j]->connectors.size(); x++)
{
- if (servers[j]->connectors[x].GetServerName() == std::string(udp_host))
+ log(DEBUG,"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(DEBUG,"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!!!