summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-16 16:02:41 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-16 16:02:41 +0000
commit3c0a30bba39f42212a2673b6f2bb1c19ca905fde (patch)
treed15cf32b066a6821adec85afbf2f76ab79221b22 /src/inspircd.cpp
parent50066dd948de5e7d8af71386a53f2b03e2352474 (diff)
Added extra rejoin stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@624 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index bc512cebd..9f690f830 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -6667,6 +6667,10 @@ void process_restricted_commands(char token,char* params,serverrec* source,serve
case 'Y':
nb_start = time(NULL);
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.
+ snprintf(buffer,MAXBUF,"~ %d",authcookie);
+ source->SendPacket(buffer,udp_host);
break;
// ~
// Store authcookie
@@ -6801,10 +6805,6 @@ void process_restricted_commands(char token,char* params,serverrec* source,serve
WriteOpers("Server %s has completed netburst. (%d secs)",udp_host,time(NULL)-nb_start);
handle_F(token,params,source,reply,udp_host);
nb_start = 0;
- // 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.
- snprintf(buffer,MAXBUF,"~ %d",authcookie);
- source->SendPacket(buffer,udp_host);
// tell all the other servers to use this authcookie to connect back again
// got '+ test3.chatspike.net 7010 -2016508415' from test.chatspike.net
snprintf(buffer,MAXBUF,"+ %s %s %d %d",udp_host,ipaddr,port,authcookie);