Authentication stuff

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@587 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2004-04-14 20:12:09 +00:00
parent 95c25d0335
commit 59ba10a84e

View File

@ -6841,19 +6841,19 @@ void handle_link_packet(char* udp_msg, char* udp_host, serverrec *serv)
for (int j = 0; j < 255; j++)
{
log(DEBUG,"Loop %d",j);
if (servers[j] != NULL)
if (me[j] != NULL)
{
log(DEBUG,"Server %d not null",j);
for (int x = 0; x < servers[j]->connectors.size(); x++)
for (int x = 0; x < me[j]->connectors.size(); x++)
{
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,"Servers are: '%s' '%s'",udp_host,me[j]->connectors[x].GetServerName().c_str());
if (!strcasecmp(me[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!!!
process_restricted_commands(token,params,servers[j],serv,udp_host);
process_restricted_commands(token,params,me[j],serv,udp_host);
return;
}
}