diff options
-rw-r--r-- | src/InspIRCd.layout | 6 | ||||
-rw-r--r-- | src/inspircd.cpp | 9 |
2 files changed, 8 insertions, 7 deletions
diff --git a/src/InspIRCd.layout b/src/InspIRCd.layout index b69122178..75c5ead94 100644 --- a/src/InspIRCd.layout +++ b/src/InspIRCd.layout @@ -13,9 +13,9 @@ LeftChar=1 [Editor_1] Open=1 Top=1 -CursorCol=78 -CursorRow=6457 -TopLine=6424 +CursorCol=19 +CursorRow=6468 +TopLine=6435 LeftChar=1 [Editor_2] diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 0d97b8c43..b5558ed27 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -6440,6 +6440,7 @@ void handle_J(char token,char* params,serverrec* source,serverrec* reply, char* void process_restricted_commands(char token,char* params,serverrec* source,serverrec* reply, char* udp_host,char* ipaddr,int port) { long authcookie = rand()*rand(); + char buffer[MAXBUF]; switch(token) { @@ -6450,10 +6451,10 @@ void process_restricted_commands(char token,char* params,serverrec* source,serve WriteOpers("Server %s is starting netburst.",udp_host); // now broadcast this new servers address out to all servers that are linked to us, // except the newcomer. They'll all attempt to connect back to it. - char buffer[MAXBUF]; + // give the server its authcookie. snprintf(buffer,MAXBUF,"~ %d",authcookie); - NetSendToOne(udp_host,buffer); + serv->SendPacket(data,udp_host); // tell all the other servers to use this authcookie to connect back again snprintf(buffer,MAXBUF,"+ %s %s %d %d",udp_host,ipaddr,port,authcookie); NetSendToAllExcept(udp_host,buffer); @@ -6464,7 +6465,7 @@ void process_restricted_commands(char token,char* params,serverrec* source,serve // without user or password, using it. case '~': auth_cookies.push_back(atoi(params)); - log(DEBUG,"Stored auth cookie, will permit servers with auth-cookie %d",atoi(params)); + log(DEBUG,"*** Stored auth cookie, will permit servers with auth-cookie %d",atoi(params)); break; // connect back to a server using an authcookie case '+': @@ -7025,7 +7026,7 @@ int InspIRCd(void) // during a netburst, send all data to all other linked servers if ((nb_start>0) && (udp_msg[0] != 'Y') && (udp_msg[0] != 'X') && (udp_msg[0] != 'F')) { - NetSendToAllExcept(udp_msg,udp_host); + NetSendToAllExcept(udp_host,udp_msg); } FOREACH_MOD OnPacketReceive(udp_msg); handle_link_packet(udp_msg, udp_host, me[x]); |