From 9799bd67103cc7f51e68eb3b85d23768f1c5d3b8 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 14 Apr 2004 19:35:03 +0000 Subject: Fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@582 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/InspIRCd.layout | 6 +++--- src/inspircd.cpp | 18 ++++++++++++------ 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/InspIRCd.layout b/src/InspIRCd.layout index 5a314ad79..9c1ca6334 100644 --- a/src/InspIRCd.layout +++ b/src/InspIRCd.layout @@ -13,9 +13,9 @@ LeftChar=1 [Editor_1] Open=1 Top=1 -CursorCol=1 -CursorRow=6803 -TopLine=6785 +CursorCol=34 +CursorRow=6849 +TopLine=6824 LeftChar=1 [Editor_2] diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 267832127..a0633957d 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -6836,12 +6836,18 @@ void handle_link_packet(char* udp_msg, char* udp_host, serverrec *serv) serverrec* source_server = NULL; - for (int j = 0; j < 255; j++) { - if (servers[j] != NULL) { - if (!strcasecmp(servers[j]->name,udp_host)) { - if (servers[j]->haspassed) { - // found a valid key for this server, can process restricted stuff here - process_restricted_commands(token,params,servers[j],serv,udp_host); + for (int j = 0; j < 255; j++) + { + if (servers[j] != NULL) + { + for (int x = 0; x < servers[j]->connectors.size(); j++) + { + if (servers[j]->connectors[x].GetServerName() == std::string(udp_host)) + { + // 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); return; } } -- cgit v1.2.3