summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/InspIRCd.layout6
-rw-r--r--src/inspircd.cpp18
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;
}
}