]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/server.cpp
Debug
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / server.cpp
index cbbc7190a8345915cdc3b517544a0f5843e260fe..5213729a78274fe406f644d51a78bef3ccedb02f 100644 (file)
@@ -212,7 +212,7 @@ bool TreeSocket::Inbound_Server(std::deque<std::string> &params)
                if ((x->Name == servername) && ((ComparePass(this->MakePass(x->RecvPass,this->GetOurChallenge()),password) || x->RecvPass == password && (this->GetTheirChallenge().empty()))))
                {
                        /* Check for fully initialized instances of the server by id */
-                       Instance->Log(DEBUG,"Looking for dupe SID %s", sid.c_str());
+                       Instance->Logs->Log("m_spanningtree",DEBUG,"Looking for dupe SID %s", sid.c_str());
                        TreeServer* CheckDupeSID = Utils->FindServerID(sid);
                        if (CheckDupeSID)
                        {
@@ -238,6 +238,7 @@ bool TreeSocket::Inbound_Server(std::deque<std::string> &params)
 
                        // this is good. Send our details: Our server name and description and hopcount of 0,
                        // along with the sendpass from this block.
+                       this->SendCapabilities();
                        this->WriteLine(std::string("SERVER ")+this->Instance->Config->ServerName+" "+this->MakePass(x->SendPass, this->GetTheirChallenge())+" 0 "+Instance->Config->GetSID()+" :"+this->Instance->Config->ServerDesc);
                        // move to the next state, we are now waiting for THEM.
                        this->LinkState = WAIT_AUTH_2;