]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
For some reason there was a FinishBurst in the encap command, which was sending spuri...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 6 Apr 2008 17:24:10 +0000 (17:24 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sun, 6 Apr 2008 17:24:10 +0000 (17:24 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9379 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_spanningtree/treeserver.cpp
src/modules/m_spanningtree/treesocket2.cpp

index db26b3f889ee6a0a414eba0cd5ebd9a27e17d808..a02bc57cabc2a3de60889b5a947780b85c5738f4 100644 (file)
@@ -142,16 +142,18 @@ std::string& TreeServer::GetID()
 
 void TreeServer::FinishBurst()
 {
-       this->bursting = false;
-       ServerInstance->XLines->ApplyLines();
-       timeval t;
-       gettimeofday(&t, NULL);
-       long ts = (t.tv_sec * 1000) + (t.tv_usec / 1000);
-       unsigned long bursttime = ts - this->StartBurst;
-       ServerInstance->SNO->WriteToSnoMask('l', "Received end of netburst from \2%s\2 (burst time: %lu %s)", ServerName.c_str(),
-                                               (bursttime > 1000 ? bursttime / 1000 : bursttime), (bursttime > 1000 ? "secs" : "msecs"));
-       Event rmode((char*)ServerName.c_str(),  (Module*)Utils->Creator, "new_server");
-       rmode.Send(ServerInstance);
+       if (this->bursting)
+       {
+               this->bursting = false;
+               ServerInstance->XLines->ApplyLines();
+               timeval t;
+               gettimeofday(&t, NULL);
+               long ts = (t.tv_sec * 1000) + (t.tv_usec / 1000);
+               unsigned long bursttime = ts - this->StartBurst;
+               ServerInstance->SNO->WriteToSnoMask('l', "Received end of netburst from \2%s\2 (burst time: %lu %s)", ServerName.c_str(), (bursttime > 1000 ? bursttime / 1000 : bursttime), (bursttime > 1000 ? "secs" : "msecs"));
+               Event rmode((char*)ServerName.c_str(),  (Module*)Utils->Creator, "new_server");
+               rmode.Send(ServerInstance);
+       }
 }
 
 void TreeServer::SetID(const std::string &id)
index c2bd83e53d64b1de07b1498e43a9138024b20540..40cee5854cdc6996f35300a39e2d32ec292fd621 100644 (file)
@@ -517,7 +517,6 @@ bool TreeSocket::ProcessLine(std::string &line)
                        }
                        else if (command == "ENCAP")
                        {
-                               ServerSource->FinishBurst();
                                return this->Encap(prefix, params);
                        }
                        else if (command == "MODE")